Cannot read properties of undefined

This is the Package.json
package.json

by user 225092454464880640

Oh, in the terminal, on an install, Iā€™m seeing this:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: ā€˜@squoosh/lib@0.4.0ā€™,
npm WARN EBADENGINE required: { node: ā€™ ^12.5.0 || ^14.0.0 || ^16.0.0 ā€™ },
npm WARN EBADENGINE current: { node: ā€˜v18.17.0ā€™, npm: ā€˜9.6.7ā€™ }
npm WARN EBADENGINE }

by user 225092454464880640

mmmh ok then Iā€™m a bit out of ideas right now - can you send a bugreport (via Needle Engine/Report a bug) ?

thatā€™s fine :slightly_smiling_face:

thanks

mmmh ā€œunfortunatlyā€ the scene works here - Iā€™m just getting the dialogue that the lightmap encoding is not set to ā€œNormalā€ but when I select ā€œExport without lightmapsā€ it works.

That suggests that either the project setup sent via the bugreporter is not exactly like yours OR that itā€™s a difference in configuration on our machines.
Iā€™m having the same node version installed right now btw

but npm 8.19.2

It might be that: can you try installing npm 8?

Iā€™ll try that

by user 225092454464880640

I inserted a few console logs and isolated the issue to here:

loadAndTransform: C:/Users/roblkw/wkspaces/My project (4)/Needle/CollaborativeSandbox/index.html?html-proxy&index=0.js loadAndTransform: C:/Users/roblkw/wkspaces/My project (4)/Needle/CollaborativeSandbox/index.html?html-proxy&index=1.js loadAndTransform: C:/Users/roblkw/wkspaces/My project (4)/Needle/CollaborativeSandbox/index.html?html-proxy&index=2.js

by user 225092454464880640

Do you know what itā€™s trying to do there? What are 0.js, 1.js, and 2.js?

by user 225092454464880640

Installed Node 16.20.1, npm 8.19.4, and I still have the same issues

by user 225092454464880640

Mmh loadAndTransform sounds kike a vite function.
Can you perhaps use chrome to stop at the exception (via the dev tools f12 and then the source tab) which should display a lot more info where it fails an why.

Also: do you see any more info in the commandline window that opens? Or just that?

Another thought: does it work if the unity project path doesnt contain (4) ?

Yes, Iā€™ve tried this on many different project paths now

by user 225092454464880640

NeedleTest, NeedleTryTwo, NeedleTryThree, etc.

by user 225092454464880640

Mmmh im sorry youā€™re having trouble with this.

  • Can you try running ā€˜npm startā€™ via your cmdline in the web project folder if it prints any further info?
  • maybe try creating a new empty unity scene, then use the menu item ā€œNeedle Engine/setup sceneā€ and try with just that (basically an empty scene)

I can ask the team tomorrow if someone has another idea (donā€™t want to ping on sunday).

Let me know if you somehow figure it out in the meantime.

This is the view from Chromeā€™s developer console

by user 225092454464880640

npm start gives the same information as before.

by user 225092454464880640