example-node-server icon indicating copy to clipboard operation
example-node-server copied to clipboard

Wrong example

Open bnbarak opened this issue 7 years ago • 0 comments

When getting the error:

Running "babel:dist" (babel) task Warning: Path must be a string. Received undefined Use --force to continue.

The solution is to change the dist object from src to path dist: { path: { './server.js': 'src/app.js' } }

At least in versions "babel-preset-es2015": "^6.24.1", "babel-preset-stage-2": "^6.24.1", "grunt-babel": "^6.0.0"

Also need to change the example.

bnbarak avatar Jun 16 '17 22:06 bnbarak