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.

[v2.0.3] Doesn't seem to pick up the babel presets.

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shellscapecommented, Jan 11, 2018

@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.

1reaction
shellscapecommented, Jan 11, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

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