Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error: Unexpected token / #1247

Closed
keenwon opened this issue Feb 8, 2019 · 1 comment

Comments

@keenwon
Copy link

commented Feb 8, 2019

What version of standard?

12.0.1

What operating system, Node.js, and npm version?

  • system: manjaro
  • Node.js: v11.8.0
  • npm: 6.5.0

What did you expect to happen?

run without errors.

What actually happened?

src
├── App.jsx
└── index.js

src/App.jsx:

import React from 'react';

const App = () => <div>Hello World!</div>;

export default App;

src/index.js:

import React from 'react';
import ReactDOM from 'react-dom';

import App from './App';

ReactDOM.render(<App />, document.querySelector('#root'));
> xxxx@1.0.0 test /home/keenwon/Test/xxxx
> standard "src/**/*.+(js|jsx)"

standard: Use JavaScript Standard Style (https://standardjs.com)
  /home/keenwon/Test/xxxx/src/App.jsx:3:37: Parsing error: Unexpected token /
  /home/keenwon/Test/xxxx/src/index.js:6:22: Parsing error: Unexpected token /
npm ERR! Test failed.  See above for more details.
@keenwon

This comment has been minimized.

Copy link
Author

commented Feb 13, 2019

@keenwon keenwon closed this Feb 13, 2019

@lock lock bot locked as resolved and limited conversation to collaborators May 14, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
1 participant
You can’t perform that action at this time.