Replies: 1 comment 1 reply
-
Hm, the more I investigate, the more I get the impression that I'm still supposed to use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Before ESM, I had this
script
in my package.json:When switching to ESM, it seems I cannot run smth like
node bin/run.js serve
anymore, so my first impulse would be to use that instead:Which is actually working, but of course complains about missing environment variables. Is there a way to inject the
.env
file the same way as before?As an explanation why
node bin/run.js serve
or evennode bin/dev.js
aren't working - with ESM they lead to this error:Or did I set up something wrongly in my
run.js
?Or my
dev.js
:My
tsconfig.json
changed from commonjs:to
Beta Was this translation helpful? Give feedback.
All reactions