Hello, after update to a new 6.0.0 version.
That the error, that i receive on build.
minimal repo for reproduce this behavior:
https://github.com/psycura/with-apollo-next
.babelrc:
`
{
"presets": [
"next/babel",
[
"@babel/preset-stage-0",
{
"decoratorsLegacy": true
}
]
],
"plugins": [
"transform-decorators-legacy",
"inline-react-svg",
[
"transform-assets-import-to-string",
{
"baseDir": "static",
"baseUri": "/"
}
],
[
"emotion",
{
"inline": true
}
]
]
}
`
package.json:
`
{
"name": "with-apollo",
"version": "2.0.0",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@babel/core": "7.0.0-beta.44",
"apollo-boost": "^0.1.6",
"apollo-link-context": "^1.0.8",
"apollo-link-ws": "^1.0.8",
"apollo-upload-client": "^8.0.0",
"apollo-utilities": "^1.0.12",
"babel-plugin-emotion": "^9.1.2",
"bcryptjs": "2.4.3",
"emotion": "^9.1.3",
"emotion-server": "^9.1.3",
"express": "^4.16.3",
"graphql": "^0.13.2",
"graphql-tag": "^2.9.1",
"graphql-yoga": "1.12.1",
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "2.0.0",
"jsonwebtoken": "8.2.1",
"jwt-decode": "^2.2.0",
"mobx": "^4.2.0",
"mobx-react": "^5.1.2",
"next": "latest",
"prisma-binding": "1.5.18",
"prop-types": "15.6.1",
"react": "16.3.2",
"react-apollo": "2.1.4",
"react-dom": "16.3.2",
"react-emotion": "^9.1.3",
"react-infinite-scroller": "^1.1.4",
"shortid": "^2.2.8",
"subscriptions-transport-ws": "^0.9.8",
"ws": "^5.1.1"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.44",
"@babel/preset-stage-0": "7.0.0-beta.44",
"@zeit/next-sass": "^0.1.2",
"babel-plugin-inline-react-svg": "^0.5.2",
"babel-plugin-transform-assets-import-to-string": "^1.1.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"dotenv": "5.0.1",
"graphql-cli": "2.15.13",
"node-sass": "^4.9.0",
"nodemon": "1.17.3",
"npm-run-all": "4.1.2",
"prisma": "1.7.3"
},
"author": "",
"license": "ISC"
}
`
Check these two issues out, where this is being tracked:
https://github.com/zeit/next.js/issues/4227
https://github.com/zeit/next.js/issues/4239
Also please follow the issue template in the future.
Most helpful comment
Also please follow the issue template in the future.