Replies: 1 comment 1 reply
-
Same issue. I am making a simple RESTful API CRUD with TypeScript and Express (backend) and Vite and Vue (frontend). Everything works with ESM, except node-dev... |
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
-
Hi,
I know v3 only supports ESM. I've read several threads, including the official one pinned at the top of the repo, but I just can't make it work. I use node-fetch from the cli in a frontend project to fetch remote data and update local files (translations).
The cli command is:
My original version is (works fine with v2.6.0, crashes with v3):
So I've tried to use a dynamic import instead (as suggested in your thread):
How to fix this? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions