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
Object is not a function error using v7.13.x #12888
Comments
Hey @tianleiwufeng! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
Which webpack version are you using? |
4 latest |
Can you share your webpack config? I added a test for webpack 4 at #12883 and it passes 🤔 |
|
Are you using https://github.com/mkatrenik/webpackrc? |
@nicolo-ribaudo I used https://github.com/sorrycc/roadhog for my project, this project worked very well since yesterday morning, when I remove all my node_modules , this problem came out |
thanks ,i solved this problem by adding mjs in webpack confg. why not use .js |
Because:
The only problem is when you configure webpack to handle mjs files with a different loader ( |
I still can't solve my problem, what else can I apply for your help @nicolo-ribaudo |
Other projects we used https://github.com/dvajs/dva dva for the cli tool , also have the same problem when runing or buided |
I'll check later, if you could create a repository that shows the issue it will help a lot finding the problem 🙏 |
object-not-defined.zip |
@LeventLei Thanks 👍 EDIT: Using Yarn instead of npm I can get past these errors and I successfully reproduce the problem. What command should I run after
PS: It's not the cause of the bug, but the first thing I noticed is that two of your dependencies ( |
@LeventLei This is a bug in As a workaround, you can add |
I don't find config |
I found it directly in the |
@nicolo-ribaudo It really works for me , much appreciated |
Bug Report
Current behavior
my package.json using babel v6,while some package like react-redux using babel ^7.1.1.
babel v6 comile v7.13.x to image above,i think thatis the question
The text was updated successfully, but these errors were encountered: