grommet / grommet-cli

Deprecated, use create-react-app for v2 instead. Command Line interface for grommet
Apache License 2.0
28 stars 18 forks source link

npm run dev-server #48

Open Ulisesgtz opened 6 years ago

Ulisesgtz commented 6 years ago

I install grommet-cli on my project and when i use the command npm run dev-server i got this error:

[nodemon] 1.13.3 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting node ./server/dev src/js/index.js (function (exports, require, module, filename, dirname) { import 'whatwg-fetch'; ^^^^^^

SyntaxError: Unexpected token import at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:599:28) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Function.Module.runMain (module.js:676:10) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:608:3 [nodemon] app crashed - waiting for file changes before starting...

i check on my node_module and i have the folder whatwg-fetch, i use the npm rebuild whatwg-fetch and the problem still, anyone know something about this?