Hi,
I have a project which is completed, runs successfully and is just awaiting a launch date. However, since updating Needle to 2.65.2-pre earlier today I now just get a black screen when using âQuick Actionsâ âOpen Serverâ to preview the project⊠and if I try to run âExport & Build Dist (Production)â I get the following onscreen error message âPre-build Script Failed - See Console for ErrorsâŠâ.
Iâve attached a screenshot of the console.
Extra Info
Iâm on Mac running OS Venture v 13.2.1
Any ideas regarding what might have happened will be gratefully received
Original Post on Discord
by user 908977119781060648
marcel
(marwi)
March 13, 2023, 12:00am
2
Can you try running this context menu?
marcel
(marwi)
March 13, 2023, 12:00am
3
If it doesnt help you need to udpate the paths in your scripts manually to @needle-tools/engine/src/engine-component...
instead
marcel
(marwi)
March 13, 2023, 12:00am
4
Btw you can import WebXR like so too: import { WebXR } from "@needle-tools/engine"
- you dont need to specify the full path for core components
Thanks @marcel ⊠Iâll try the context menu first as Iâm not sure Iâm experienced enough for the alternative task.
Fingers crossed that option 1 works⊠back in touch in a minâŠ
by user 908977119781060648
Nope⊠no joy re: âRun Web Project Updateâ ⊠and sadly I really just wouldnât know where to start with your other suggestion
Iâm off to grab a Time Machine backup of the project in the hope that itâll run okay.
by user 908977119781060648
marcel
(marwi)
March 13, 2023, 12:00am
7
Your screenshot shows src/scripts/play.ts
and play_x.ts
marcel
(marwi)
March 13, 2023, 12:00am
8
just change the path in there in line 7 to:
import { WebXR } from "@needle-tools/engine"
marcel
(marwi)
March 13, 2023, 12:00am
9
You can open it via this button to edit
Okay. Iâve got VS Code; so will give that a go. Back in touch in a minâŠ
by user 908977119781060648
Doh! Spoke too soon The Quick Actions preview works fine but âExport & Build Dist (Production)â still throws up an error.
by user 908977119781060648
Sorry⊠I was just grabbing a csreenshotâŠ
by user 908977119781060648
by user 908977119781060648
marcel
(marwi)
March 13, 2023, 12:00am
16
Thatâs again the wrong path?
I changed the path/s as you suggested. As said, the preview works fine.
by user 908977119781060648
marcel
(marwi)
March 13, 2023, 12:00am
18
Maybe try restarting the server
marcel
(marwi)
March 13, 2023, 12:00am
19
The above in the script is definitely wrong
Yup. Tried that.
by user 908977119781060648