erikras / erikras/react-redux-universal-hot-example
Babel transpiling failing for client.js?
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I'm probably misinterpreting the error, here's why I get on `npm run dev`:
> ...
> [2] ==> 🌎 API is running on port 3030
> [2] ==> 💻 Send requests to http://localhost:3030
> [1] ----
> [1] ==> ✅ React Redux Example is running, talking to API server on 3030.
> [1] ==> 💻 Open http://localhost:3000 in a browser to view the app.
> [0] ./src/client.js
> [0]
> **[0] /somedir/src/client.js
> [0] 4:2 error Parsing error: Illegal import declaration**
> [0]
> [0] ✖ 1 problem (1 error, 0 warnings)
> [0]
> **[0] ./src/client.js
> [0] Module build failed: TypeError: Falsy value found in plugins**
> [0] at /somedir/node_modules/babel-core/lib/transformation/file/options/option-manager.js:160:15
> [0] at Array.map (native)
> [0] at Function.normalisePlugins (/somedir/node_modules/babel-core/lib/transformation/file/options/option-manager.js:155:20)
> [0] at OptionManager.mergeOptions (/somedir/node_modules/babel-core/lib/transformation/file/options/option-manager.js:277:36)
> [0] at OptionManager.init (/somedir/node_modules/babel-core/lib/transformation/file/options/option-manager.js:465:10)
> [0] at File.initOptions (/somedir/node_modules/babel-core/lib/transformation/file/index.js:194:75)
> [0] at new File (/somedir/node_modules/babel-core/lib/transformation/file/index.js:123:22)
> [0] at Pipeline.transform (/somedir/node_modules/babel-core/lib/transformation/pipeline.js:45:16)
> [0] at transpile (/somedir/node_modules/babel-loader/index.js:14:22)
> [0] at Object.module.exports (***/node_modules/babel-loader/index.js:88:12)
> [0] @ multi main
> [0] webpack built 7e5df70721245d333ef9 in 2836ms
Before I got to this point, I couldn't get server code to transpile as well. I had to add some options to .babelrc:
`
{
"presets": [
"es2015",
"react",
"stage-0"
],
"plugins": [
"transform-decorators-legacy"
]
}
`
I'll post package.json if needed (added the above presets and plugin there).
npm version is 3.8.5
node is 5.10.0
What did I do wrong?
Contributor guide
Assessment
This issue has not been assessed yet.