Vite 'Could not resolve issues' error for all engine files

This one doesn’t seem to be in the FAQ yet.

Completely clean installs of Unity (2021.3.16f1) and Needle (2.56.0) on Windows (10.0.22621) with clean install of node-v16.19.0-x64.

I get the following error: X [ERROR] Could not resolve "./engine/debug/debug_overlay"

for everything coming from the ./engine/ directory.

No errors coming through on the Unity side.

Help!

Original Post on Discord

by user 647258621813456936

Can you check the folder in node_modules/@needle-tools/engine if it contains those paths? e.g. it should contain an engine-components folder etc

This is what node_modules/@needle-tools/engine looks like.
image.png

by user 647258621813456936

(Also I’ve deleted this folder once already and re-installed the project.)

by user 647258621813456936

Ok its missing the whole runtime - someone reported this recently and I thought it was a Linux issue: Discord

Mmmh can send me the zip using our bug reporter?
image.png

Yep.
Bugreport-Demo-Needle-230104_uw.zip

by user 647258621813456936

thanks

mmmh doesnt reproduce out of the box :confused: what are your unity and web project paths?

I’m on Node 18 right now tho

C:\Users\nate\Unity\Testing Needle
C:\Users\nate\Unity\Testing Needle\Needle\Demo-Needle

by user 647258621813456936

I’m heading to bed, but can check back tomorrow to help w/debugging.

by user 647258621813456936

Ok thank you! Goodnight!

I’ll try to reproduce

Downgrading to node 16 also doesnt repro yet

Recreated your paths here: no repro unfortunately

Do you get these warnings too? I wonder if the encoding is causing problems

Nope. Here’s a split screen of what I’m seeing.

by user 647258621813456936

Can you try doing a clean install (Hold Alt and click install on ExportInfo) and then send a zip with the logs again when its done? (via Help/Needle Engine/zip logs)

Bugreport-Demo-Needle-230105_uw.zip

by user 647258621813456936

Which npm version are you using?