Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

npm run dev-server #48

Open
Ulisesgtz opened this issue Dec 19, 2017 · 0 comments
Open

npm run dev-server #48

Ulisesgtz opened this issue Dec 19, 2017 · 0 comments
Assignees

Comments

@Ulisesgtz
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants