[v2.0.3] Doesn't seem to pick up the babel presets.
See original GitHub issueI bumped to latest koa-webpack version, did the necessary changes suggested in the update notes. But can’t seem to succeed with the compilation step. Doesn’t seem to pick up the babel config for react(jsx). Not sure what am i missing here, But I end up with the below error.
ERROR in ../src/index.js
Module parse failed: Unexpected token (27:2)
You may need an appropriate loader to handle this file type.
| const app = (
| <ReactHotLoader>
| <ReduxProvider store={store}>
@ multi react-hot-loader/patch regenerator-runtime/runtime ../src/index.js
ℹ 「wdm」: Failed to compile.
Is there a config change I’m missing out with changes around babel transpilation ? Will be happy to provide more information if needed. @shellscape
[Edit] Works fine on the previous version. So I might be missing something here.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Vue Loader doesn't seem to use Babel ES2015 defaults #417
I'm using the following components: npm list | grep vue ├── vue@2.0.3 ├─┬ vue-loader@9.7.0 │ ├── vue-hot-reload-api@2.0.6 ...
Read more >Configure Babel
Create a file called babel.config.json with the following content at the root of your project (where the package.json is). { "presets": [...], "plugins":...
Read more >babel-plugin-styled-components not working - Stack Overflow
I am using babel-loader and no matter what I try I can't get the plugin to be recognised. I am using Typescript 4...
Read more >What is @babel/preset-env and why do I need it? - Jakob Lind
So get your editor and terminal ready and code along. ... The reason for this is that Babel doesn't do anything out-of-the-box but...
Read more >Changelog - Cypress Documentation
Fixed a regression introduced in Cypress 12 where cy.get() would ignore a null ... component testing spec in open mode does not trigger...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@JounQin side note: this is probably and indicator that we should precompile in webpack-hot-client. I really didn’t want to go that route (dynamic babel compilation was supposed to eliminate more issues rather than cause them), but it looks like it’s needed in this context.
@aga5tya thanks for the report. please fill in the issue template next time though, we ask that of everyone. the issue template has a section for
// webpack.config.js
and that’s what we’re gonna need to start to take a look at your issue.