Closed JoschiZ closed 1 year ago
Hi @JoschiGrey ,
This is not a problem with mongoose-tsgen, rather with your environment which is not allowing for import statements. I dont have any experience with sveltekit so I dont think I can help much, sorry about that!
Closing this off, but feel free to re-open if you think necessary.
Hey,
if you try to run this in a sveltekit application you get the error "SyntaxError: Cannot use import statement outside a module".
To reproduce it:
Create src/models/test.ts
run
npx mtgen
The default package.json already sets
"type":"module"