-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
babel-loader transform-runtime causes TypeError: __webpack_require__(...) is not a function #637
Comments
Getting the same error on [email protected] but not 2.3.1. |
Are you still getting that error? Can any of you provide us with a |
I'm seeing this too. Here are my details. I have a tiny "getting started" app that I can throw on GitHub if needed. for my index file, if I do this, everything works fine:
When I change it to this, I get the error
webpack.config.js
package.json
Thanks! |
@sdesmond Thank you, can you throw in your |
@sdesmond If you can create that repository, that would make debugging far more easier :) |
@sdesmond Your issue doesn't have to do anything with Please read: https://medium.com/@kentcdodds/misunderstanding-es6-modules-upgrading-babel-tears-and-a-solution-ad2d5ab93ce0 @mo22 @heptahedron Closing this issue for now as I didn't hear from you Feel free to reach out here again if you are still experiencing an issue |
Ha, ha. Guess who wrote the tutorial I'm going through? That's right, Mr. Dodds :-). Thanks! |
@sdesmond I have the same question.How do you resolve it?Can you share your webpack config? thanks |
The article @mastilver posted answered the issue for me. I was trying to cross CommonJS modules and ES6 modules. You have to stick to one or the other. |
thanks,I have resolved the question |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
not really sure yet how to reproduce this, but as soon as I add transform-runtime to my webpack config in babel-loader plugins, I get the following error, both in hot and production mode:
ERROR in TypeError: webpack_require(...) is not a function
default_index.ejs:120 Object.
[form-react]/[html-webpack-plugin]/default_index.ejs:120:105
default_index.ejs:21 webpack_require
[form-react]/[html-webpack-plugin]/default_index.ejs:21:30
default_index.ejs:11781 Object.
[form-react]/[html-webpack-plugin]/default_index.ejs:11781:56
default_index.ejs:21 webpack_require
[form-react]/[html-webpack-plugin]/default_index.ejs:21:30
default_index.ejs:10915 Object.
[form-react]/[html-webpack-plugin]/default_index.ejs:10915:56
default_index.ejs:21 webpack_require
[form-react]/[html-webpack-plugin]/default_index.ejs:21:30
default_index.ejs:11792 Object.
[form-react]/[html-webpack-plugin]/default_index.ejs:11792:9
default_index.ejs:21 webpack_require
[form-react]/[html-webpack-plugin]/default_index.ejs:21:30
default_index.ejs:67 module.exports.version
[form-react]/[html-webpack-plugin]/default_index.ejs:67:18
default_index.ejs:70
[form-react]/[html-webpack-plugin]/default_index.ejs:70:10
The text was updated successfully, but these errors were encountered: