Advertisement
Guest User

webpack trouble

a guest
Dec 14th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.66 KB | None | 0 0
  1. MacBook-Pro-Nikolai:Nikolai_Rubtsov keet$ npm run start
  2.  
  3. > todo-polis-2018@0.0.1 start /Users/keet/IdeaProjects/Nikolai_Rubtsov
  4. > babel-node --inspect ./node_modules/.bin/webpack-dev-server --config webpack.config.js
  5.  
  6. Debugger listening on ws://127.0.0.1:9229/57daade5-b4a3-419a-9248-409d0ee35005
  7. For help see https://nodejs.org/en/docs/inspector
  8. /Users/keet/IdeaProjects/Nikolai_Rubtsov/webpack.config.js:1
  9. (function (exports, require, module, __filename, __dirname) { import path from 'path';
  10.                                                               ^^^^^^
  11.  
  12. SyntaxError: Unexpected token import
  13.     at createScript (vm.js:80:10)
  14.     at Object.runInThisContext (vm.js:139:10)
  15.     at Module._compile (module.js:617:28)
  16.     at loader (/Users/keet/IdeaProjects/Nikolai_Rubtsov/node_modules/babel-register/lib/node.js:144:5)
  17.     at Object.require.extensions.(anonymous function) [as .js] (/Users/keet/IdeaProjects/Nikolai_Rubtsov/node_modules/babel-register/lib/node.js:154:7)
  18.     at Module.load (module.js:566:32)
  19.     at tryModuleLoad (module.js:506:12)
  20.     at Function.Module._load (module.js:498:3)
  21.     at Module.require (module.js:597:17)
  22.     at require (internal/module.js:11:18)
  23. npm ERR! code ELIFECYCLE
  24. npm ERR! errno 1
  25. npm ERR! todo-polis-2018@0.0.1 start: `babel-node --inspect ./node_modules/.bin/webpack-dev-server --config webpack.config.js`
  26. npm ERR! Exit status 1
  27. npm ERR!
  28. npm ERR! Failed at the todo-polis-2018@0.0.1 start script.
  29. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  30.  
  31. npm ERR! A complete log of this run can be found in:
  32. npm ERR!     /Users/keet/.npm/_logs/2018-12-14T13_18_45_192Z-debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement