ericelliott / ericelliott/react-pure-component-starter
Webpack error "Unexpected token"
- Dominant language
- JavaScript
- Stars
- 788
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I just cloned and tried to build the starter kit, but there seems to be an error with webpack.
> ERROR in ./source/components/hello/index.js
Module parse failed: C:\.../source\components\hello\index.js Unexpected token (9:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (9:6)
I have tracked down the cause of this to the `webpack.config.dev.js` and `webpack.config.prod.js` files. The line that triggers the error is :
`include: path.join(__dirname, 'source')`
As soon as I remove that line (actually replacing it with an exclude of `node_modules` instead), the projet build and runs perfectly.
Do you have any idea what causes this ?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.