Build never exist after upgrading to canary.35 or 8.1.0
See original GitHub issueAfter upgrading from 8.0.5-canary.34 to 35 or 8.1.0, build will never exit. It does build, so if I will exit manually and export or start, everything works, but the issue is, after project was built and all pages are listed in cli, build doesn’t exit automatically.
Can’t provide code to replicate, because having this issue on production project that I can’t share, any other projects work perfectly fine with 8.1.0.
Expected behavior:
- exit script after build completed
package.json
"@material-ui/core": "^3.9.3",
"formik": "^1.5.0",
"next-redux-wrapper": "^1.3.5",
"next": "8.0.5-canary.34",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"redux": "^4.0.0",
"react-redux": "^5.1.0",
"@babel/cli": "^7.4.3",
"@babel/core": "^7.4.3",
"@babel/node": "^7.2.2",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/preset-flow": "^7.0.0",
next.config.js
const defaultConfig = require('./config/default.json');
const stagingConfig = require('./config/staging.json');
const productionConfig = require('./config/production.json');
const { NODE_ENV } = process.env;
const extendConfig = NODE_ENV === 'production' ? productionConfig : NODE_ENV === 'staging' ? stagingConfig : {};
module.exports = {
pageExtensions: ['jsx'],
crossOrigin: 'anonymous',
assetPrefix: extendConfig.CDN || '',
generateBuildId: () => {
const { version } = require('./package.json');
return version;
},
env: {
...defaultConfig,
...extendConfig,
},
};
.babelrc.js
module.exports = {
presets: [
'@babel/preset-flow',
'next/babel',
],
plugins: [
['import', { libraryName: 'antd' }],
'@babel/plugin-proposal-export-default-from',
'add-module-exports',
],
};
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Build never exist after upgrading to canary.35 or 8.1.0 · Issue #7088 ...
After upgrading from 8.0.5-canary.34 to 35 or 8.1.0, build will never exit. It does build, so if I will exit manually and export...
Read more >Build error with Android Studio 3.0 Canary 4 - Stack Overflow
The following procedure worked as a workaround for this issue: Execute the following build commands on the gradle command line.
Read more >Install profile is disabled for lots of different reasons and core ...
Problem: Issue summary: There are multiple issues with install profiles, both within Drupal 7 and on upgraded Drupal 6 sites, these all end ......
Read more >firebase - UNPKG
node_modules/core-js/modules/esnext.map.update-or-insert.js","../. ... will create the object\n * goog.foo.bar if it does not already exist).
Read more >firebase | Yarn - Package Manager
The Firebase JavaScript SDK implements the client-side libraries used by applications using Firebase services. This SDK is distributed via: CDN · npm package....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@chuyik @timneutkens actually after updating to
8.1.1-canary.10issue is fixedSimilar issue here.
yarn buildfails after version8.0.5-canary.35(works for8.0.5-canary.34). What happens with8.0.5-canary.35,8.1.0and8.1.1-canary.0is that a code in one of my app’s TS files ends up being executed. It exits with non-zero, because a required env variable is missing. This may be to do with some AMP stuff, but I’m not sure.For
next@8.1.1-canary.1throughnext@8.1.1-canary.4the build script works again. Startingnext@8.1.1-canary.5, I see a TypeScript error, which followsCompiled successfullyand the list of pages. This can be to do with ongoing work to deprecate@types/nextand@zeit/next-typescript.