-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Duplicate plugin/preset detected. #103
Comments
Yes, I have encountered the same problem. This problem is coming from different node version. The proper solution is
npm uninstall @babel/plugin-proposal-class-properties
{
"presets": ["@babel/preset-react", "@babel/preset-env"],
// "plugins": ["@babel/plugin-proposal-class-properties"]
}
npm run clear-build-cache and then you are ready to run parcel again |
I'm also running into this issue. Thanks, @Keromudo for posting your solution! Unfortunately, the solution above isn't working for me. I'm running into the following build error:
Interestingly, I get the same error regardless of whether the plugin is disabled in .bablerc. I've tried uninstalling all the dependencies and re-installing them, but this hasn't helped either. I'm going to follow along the rest of the with class components, but if anyone knows of something to try, let me know! I'm curious about resolving this. |
Commenting the plugin breaks the code, doesn't it? @Keromudo |
@lizzSoup you may want to make sure you have these lines in your package.json:
|
Now clearing cache in npm is no possible |
For some reason the cache command didn't work for me, So instead I used |
Error:
The problem seems to be coming from the new version of babel, which has a conflict with other babel plugins.
I got the error to go away by commenting out the plugins in the
.babelrc
fileThe text was updated successfully, but these errors were encountered: