Exports.ts' is not a module

User/myName/MyFolder/needle-engine-support-main/starter/Needle Engine Starter 2020_3/Library/PackageCache/com.needle.engine@2.26.1-pre/package~/engine-components/codegen/exports.ts’ is not a module.

since updating to 2.26.1-pre i can no longer export anything (run locally or to glitch) with the error above, i dont know what to do, as the file looks fine, and the install npm and alt-install npm and restarting unity do not help. i never edited the exports.ts file. macos, unity 2020.3.38f1

i suggest this is a 2.26.1-pre bug, since i never had this, but it might also be user error, in which case i also would be very delighted for help

Original Post on Discord

by user 184681375805210626

Hey there! Sorry about that. Can you try updating to the latest version (2.30.1-pre) and check if the issue persists?

i am on needle-engine 2.26.1-pre, needle-engine-exporter is 2.30.1-pre, as far as i can see i’m up to date everywhere

by user 184681375805210626

Ah, I see
Can you try downgrading just to check that this latest version introduced an issue?
I’ll also check here if there’s a known issue in latest

Hey Oliver, sorry to hear. Which version were you previously using?

Do you see where this error is coming from?

i was on 2.25

by user 184681375805210626

the error is error TS2306:

by user 184681375805210626

i’m downgrading now to see if it works that way

by user 184681375805210626

Yep I’m getting same error. I can’t export to glitch now. I get same error but for 2.32.0

File '/Users/.../Library/PackageCache/com.needle.engine@2.32.0-pre/package~/engine-components/codegen/exports.ts' is not a module.

by user 412630148001824768

Same error for me as well, error TS2306

by user 412630148001824768

Hey sorry to hear - are you on osx (which version?) And which node version are you using?

Yes I’m on osx and on node v18.0.0

by user 412630148001824768

osx 12.6

by user 412630148001824768

Could you maybe try if you get the same error with node 16 (the lts version)?

ok i’ll try to downgrade

by user 412630148001824768

OK i downgraded to node v16.18 and seems the error is gone

by user 412630148001824768

but I still can’t deploy to Glitch

by user 412630148001824768

Clicking “Create new Glitch Remix” button opens the starter file link but it just spins, never actually opens. Can’t get to next step to enter URL for the project name.

by user 412630148001824768

Ok sounds like a problem on glitch, one second i check the project (it just calls the glitch remix api)

Can you try doing a context click on the “Deploy to glitch” header, i think there is an option to just open the starter project - if that opens you could try clicking remix manually from there