You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You get this kind of error because import is an ES6 feature and not available unless transpiled with something like babel.
To just start my app, I have something like "start": "babel-node index.js", which works fine. However I still get the error for my dev script (basically the same as your "server-server" script): "dev": "NODE_ENV=development nodemon index.js".
Anyone knows how to fix the "import" issue when using nodemon?
Nevermind, I fixed it for nodemon with: "dev": "NODE_ENV=development nodemon index.js --exec babel-node index.js".
I'm using the latest node and running jasmine tests on my project only to be met with
my package.json is
What can be the problem here?
The text was updated successfully, but these errors were encountered: