-
Notifications
You must be signed in to change notification settings - Fork 27.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
Next v6.0.0 babel plugin provided an invalid property of "default" #4300
Comments
Same issue here. Updated from |
I've updated to using {
"presets": [
"env",
"next/babel",
"stage-2"
]
} but This is my next.config.js: const withImages = require('next-images')
const withSass = require('@zeit/next-sass')
require('dotenv').config()
module.exports = withImages(withSass({
serverRuntimeConfig: {
MONGOURL: process.env.MONGOURL
}
})) |
@maniart Check out http://babeljs.io/env |
See #4227 (comment) |
@timneutkens |
same for me _next/static/style.css gives 404 |
Was getting the same error after upgrading to Next v6 and Babel v7.
.babelrc
package.json {
"scripts": {
"test": "BABEL_ENV=test mocha -r @babel/register -r test/config/unit-setup.js 'src/**/*test.js'"
},
"dependencies": {
"@babel/cli": "7.0.0-beta.44",
"@babel/core": "7.0.0-beta.44",
"babel-plugin-inline-react-svg": "^0.4.0",
"babel-plugin-rewire": "^1.1.0",
},
"devDependencies": {
"@babel/register": "^7.0.0-beta.49"
}
} @timneutkens I tried what you had in the comment you linked us to, but still no luck. |
Earlier this week I was was running into the same issue trying to get jest up and running, mocha ran into the same problem. Got back to it today and just doing a copy/paste of the "with-jest" example babelrc and package.json's relevant dev dependencies worked for me, which is odd because thats the first thing I tried earlier this week but I got this error. |
Ever since upgrading to Next 6 and trying to take advantage of the new _app.js file, I seem to have issues with having a
.babelrc
file. If I remove the.babelrc
file everything works fine except for my mocha tests.But keeping the file:
I get the following error:
Error: Plugin 0 specified in "/Users/dillonraphael/Desktop/REED/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/Users/dillonraphael/Desktop/REED/node_modules/next/babel.js")
This is my package.json:
The text was updated successfully, but these errors were encountered: