Open karneaud opened 6 years ago
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 would check jasmine docs for a similar option.
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?