Iām trying to install/play the sample, but I keep getting: āCannot read properties of undefinedā as a response in the terminal and in the webpage. Iām using Unity 2021.3.21. Any help would be appreciated!
Error message:
at Context.load(...Needle%20Try%202/Needle/CollaborativeSandbox/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:37051:65)
at Object.load (...Needle%20Try%202/Needle/CollaborativeSandbox/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:42892:46)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async loadAndTransform (...Needle%20Try%202/Needle/CollaborativeSandbox/node_m
[Original Post on Discord](https://discord.com/channels/717429793926283276/1135024922859671714)
*by user 225092454464880640*
This is the Collaborative Sandbox project
by user 225092454464880640
Hi, which OS are you using? It sounds like OSX or maybe linux?
Can you try doing a clean install ? (Hold ALT then click install on the ExportInfo component)
Iām using Windows 11. Iāll try what you recommended
by user 225092454464880640
Update: I get the same issue after a clean install.
by user 225092454464880640
I tried it on Unity 2021.3.29 and am facing the same issues.
by user 225092454464880640
And the same issue with Unity 2021.3.10. What else shall I try? Or is there more information I can provide?
by user 225092454464880640
Not sure if it matters, but Iām using node: āv18.17.0ā, npm: ā9.6.7ā
by user 225092454464880640
The following info might help:
- How did you install or create the Collaborate Sandbox?
- Did you install the samples package? If yes can you check which version you have?
- Which version of NEedle engine do you use? See the bottom of the ExportInfo component
The node version is fine
and all those Unity versions should work. I think itās unrelated to that
Oh and which browser and which browser version are you currently using?
Another thing: can you copy paste your package.json here? You get it via the Open Workspace
button on the ExportInfo component (either drop the whole file or just copy paste the content)
Install/Create: Iāve tried both the introductory button āCreate Sample Sceneā as well as generating a scene from ExportInfo.
No, I didnāt install the samples package. Iāll do so now.
Needle Version 3.5.0-exp
(Thanks for helping!)
by user 225092454464880640
Browser is Chrome 115.0.5790.110 (official)
by user 225092454464880640
Can you try updating to the latest version? 3.11.0-pre ?
Yes, will do
by user 225092454464880640
Oh please send the package.json
Thereās a version of vite that is currently causing issues (>= 4.4.0 - Iām curious if thatās the reason here as well)
Oh, never mind, I was actually using 3.11.0-pre.
by user 225092454464880640