Hi, I'd like to use the import statement - just for ease of use - and so I'm going about this by (in theory) transpiling my src directory and then giving the server file over to nodemon.My package.json looks like:"scripts": { "demon": "npm run build && nodemon ./src/client/server.js", "build": "npx babel src --out-dir lib --source-maps inline", And the error I'm getting is that it doesn't recognise the destructuring part of the import statement in server.js. I mean I know I'm doing something wrong, I'm not even sure how close my understanding of the problem is to the mark.
Submitted October 10, 2019 at 06:02PM by HUMBLEFART
No comments:
Post a Comment