question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error Parsing error: The keyword 'import' is reserved

See original GitHub issue

i cant intall this i run in my terminal 3 commands: Clone the project. git clone https://github.com/coryhouse/react-slingshot.git. Install Node packages. npm install Run the example app. npm start -s

and terminal return this messages

/Users/eugene/Documents/git/cit-one/webpack.config.js 4:1 error Parsing error: The keyword ‘import’ is reserved /Users/eugene/Documents/git/cit-one/tools/build.js 4:1 error Parsing error: The keyword ‘import’ is reserved /Users/eugene/Documents/git/cit-one/tools/buildHtml.js 10:1 error Parsing error: The keyword ‘import’ is reserved /Users/eugene/Documents/git/cit-one/tools/distServer.js 4:1 error Parsing error: The keyword ‘import’ is reserved /Users/eugene/Documents/git/cit-one/tools/srcServer.js 5:1 error Parsing error: The keyword ‘import’ is reserved ✖ 5 problems (5 errors, 0 warnings ERROR: lint:tools: None-Zero Exit(1);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:41 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
richyrb00commented, Oct 15, 2016

I thought that might help others. Because they are probably unzipping copying the files into a preferred folder and then running terminal commands. Because they are copying the files over it’s not including the hidden files that I listed.

1reaction
rjmreiscommented, Sep 16, 2016

You’re right, the problem was when I copied the files over I left out the hidden ones.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Parsing Error The Keyword import is Reserved ...
The eslint option that solves the "The keyword import is reserved" error is parserOptions.sourceType . Setting ...
Read more >
Parsing error: The keyword 'import' is reserved · Issue #67
For some reason eslint is saying import is wrong. It might be related to this issue jsx-eslint/eslint-plugin-react#447 (comment)
Read more >
JavaScript : Parsing Error The Keyword import is Reserved ...
JavaScript : Parsing Error The Keyword import is Reserved (SublimeLinter-contrib-eslint) [ Gift : Animated Search Engine ...
Read more >
eslint/eslint - Gitter
"AssertionError [ERR_ASSERTION]: A fatal parsing error occurred: Parsing error: The keyword 'import' is reserved" and other similar errors.
Read more >
Parsing error: The keyword 'import' is reserved-Reactjs
[Solved]-Parsing error: The keyword 'import' is reserved-Reactjs · Related Query · More Query from same tag · Contact Us · Quick Links ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found