Issues with NextJS ( Unity seems to export dependencies in the wrong place ). How do I fix this?

( running it with npm run dev as standalone with the package.json updated spits the same errors as 1 msg above )

by user 465420608906461195

Have you updated the Unity package? which version are you currently using?
image.png

You need to run install from Unity to also update the dependencies (the other local packages, they need to use the same Needle Engine version which is automatically bumped by the installation)

updated all

by user 465420608906461195

image.png
image.png

by user 465420608906461195

by user 465420608906461195

Can you try running “Clean Install” (hold ALT + click Install) ?

Sorry for the inconvenience

I’m trying to improve this right now

didn’t work, same error

by user 465420608906461195

it’s ok, I just need it to work :slight_smile: ( even with a janky hacky solution I’m ok )

by user 465420608906461195

Can you again update the Unity package? I’ve now also created a new project, installed the package + samples and opened the first person controller sample + cloned nextjs. It worked for me after removing the SampleScripts npmdef

20230904-142248_172.22.5.2223000_-_Google_Chrome-logo.mp4

working now, but whenever a second player joins upon interacting in any way it gets this error:

by user 465420608906461195

main players gets this error but doesn’t get kicked like the second one
image.png

by user 465420608906461195

ig it is bc PlayerStateUI is missing
image.png

by user 465420608906461195

Add the samples scripts back in
image.png

adding them back in gets me to square one again :frowning:

by user 465420608906461195

You can fix that manually by changing import { getWorldScale, setWorldPosition } from "@needle-tools/engine/src/engine/engine_three_utils";
to import { getWorldScale, setWorldPosition } from "@needle-tools/engine";

The errors above happen because of these components?