The server restart, I mean.
by user 908977119781060648
The server restart, I mean.
by user 908977119781060648
You can also try to run a clean installation after fixing the path, maybe itās cached
Iāll try the clean install. Two minsā¦
by user 908977119781060648
It took a lot longer than when Iāve performed clean installs on previous occasions⦠I donāt know if thatās maybe significant?
Anyway, still no joy Iām afraid. The Quick Actions preview works fine, but the Export & Build Dist (Production) still throws an error (screen shot attached).
by user 908977119781060648
For ref. play.ts is
Behaviour,
PlayableDirector,
serializable,
WebXR,
} from "@needle-tools/engine";
import { WebXR } from "@needle-tools/engine"
export class Play extends Behaviour {
@serializable(PlayableDirector)
timeline?: PlayableDirector;
awake() {
window.addEventListener("pointerdown", () => {
if (this.timeline) {
this.timeline.playOnAwake = true;
this.timeline.play();
}
});
}
start() {
WebXR.addEventListener(WebXREvent.XRStarted, () => this.timeline?.play());
}
}```
*by user 908977119781060648*
Youāre importing the WebXR component twice in your code. Maybe thatās the reason?
Can you try removing the second import?
So try this, do you mean?
Behaviour,
PlayableDirector,
serializable,
WebXR,
} from "@needle-tools/engine";
import { WebXR }"
export class Play extends Behaviour {
@serializable(PlayableDirector)
timeline?: PlayableDirector;
awake() {
window.addEventListener("pointerdown", () => {
if (this.timeline) {
this.timeline.playOnAwake = true;
this.timeline.play();
}
});
}
start() {
WebXR.addEventListener(WebXREvent.XRStarted, () => this.timeline?.play());
}
}```
*by user 908977119781060648*
Line 7 still contains import { WebXR }"
But yep without that line
So remove it completely and go back to the original script?
by user 908977119781060648
you import it here already:
import {
Behaviour,
PlayableDirector,
serializable,
WebXR,
} from "@needle-tools/engine";
import {
Behaviour,
PlayableDirector,
serializable,
WebXR,
} from "@needle-tools/engine";
export class Play extends Behaviour {
@serializable(PlayableDirector)
timeline?: PlayableDirector;
awake() {
window.addEventListener("pointerdown", () => {
if (this.timeline) {
this.timeline.playOnAwake = true;
this.timeline.play();
}
});
}
start() {
WebXR.addEventListener(WebXREvent.XRStarted, () => this.timeline?.play());
}
}
like this ^
Two tics⦠Iāll tryā¦
by user 908977119781060648
Nope. Itās still not liking that.
So sorry to have fallen at this hurdle⦠but Iām over half an hour late for a meeting and really have to dash ![]()
by user 908977119781060648
Thanks for trying. Itās much appreciated ![]()
by user 908977119781060648
Hasty update en route to meeting⦠Iāve reverted to an archive/Time Machine backup of the project (which was built with and still uses 2.62.0-pre) and that runs and compiles fine; so Iāll stick with that for now. Itās not ideal, I know, but itās salvaged things in the immediacy.
My guess is, itās maybe best to keep using the (old) Needle version that a given project is built with - and use any updated versions of Needle for new projects as they come through?
by user 908977119781060648
Sorry about that - usually updates should work fine. In your case it really looks like a caching issue or something like that. Do you think you could give me access to the project?
Hi again @Marcel_Wiessler1
⦠no worries⦠and yep sure. Itās a client commission so itāll need to be kept under wraps but Iām happy to zip it and DM it to you as soon as Iām back at my desk
![]()
by user 908977119781060648