next.js: Build time very long and never finishing.
Bug report
Describe the bug
Build time very long and never finishing. At localhost (Mac OS) everything ok, but in Ubuntu troubles. Also, builded project working in a both system.
To Reproduce
{
"name": "DEMO",
"version": "1.0.0",
"description": "",
"main": "server.js",
"engines": {
"npm": "6.1.0",
"node": "9.5.0"
},
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js -p 7001",
"port": "next start -p $PORT"
},
"author": "",
"license": "MIT",
"dependencies": {
"@material-ui/core": "^1.5.1",
"@material-ui/icons": "^1.0.0-beta.43",
"@material-ui/lab": "^3.0.0-alpha.13",
"avataaars": "^1.1.0",
"axios": "^0.18.0",
"classnames": "^2.2.6",
"express": "4.16.2",
"i18next": "10.4.1",
"i18next-browser-languagedetector": "2.1.0",
"i18next-express-middleware": "1.0.10",
"i18next-node-fs-backend": "1.0.0",
"i18next-node-remote-backend": "^1.0.0",
"i18next-xhr-backend": "1.5.1",
"isomorphic-unfetch": "^2.0.0",
"jss": "^9.8.1",
"lodash": "^4.17.10",
"mobx": "^4.2.1",
"mobx-react": "^5.1.2",
"moment": "^2.22.2",
"next": "^6.1.1",
"next-routes": "^1.4.2",
"nprogress": "^0.2.0",
"prop-types": "^15.6.2",
"prop-types-exact": "^1.1.1",
"react": "16.3.0-rc.0",
"react-bottom-scroll-listener": "^1.3.0",
"react-copy-to-clipboard": "^5.0.1",
"react-countdown-now": "^1.3.0",
"react-device-detect": "^1.5.8",
"react-dom": "16.3.2",
"react-fontawesome": "^1.6.1",
"react-helmet": "^5.2.0",
"react-i18next": "7.3.6",
"react-jss": "^8.4.0",
"react-moment-proptypes": "^1.6.0",
"react-number-format": "^3.4.2",
"react-page-visibility": "^3.0.0",
"react-phone-number-input": "^2.1.2",
"react-rating": "^1.3.0",
"react-redux": "^5.0.7",
"react-share": "^2.3.1",
"react-stickynode": "^2.0.1",
"react-timeago": "^4.1.9",
"react-timeout": "^1.1.1",
"react-vis": "^1.10.7",
"redux": "^4.0.0",
"remove": "^0.1.5"
},
"devDependencies": {
"@babel/runtime": "^7.0.0",
"@babel/plugin-transform-react-jsx-source": "^7.0.0-beta.52",
"babel-plugin-module-resolver": "*",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "*",
"babel-preset-stage-0": "^6.24.1",
"cross-env": "^5.1.4",
"styled-jsx-css-loader": "^0.3.0",
"styled-jsx-plugin-sass": "^0.2.2",
"webpack": "^4.17.2"
}
}
Example command line
$ npm run build
> Using external babel configuration
> Location: "/home/admin/web/demo.com/public_html/.babelrc"
System information
- OS: masOS, Ubuntu 16.04
- Version of Next.js: 6.1.1
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (3 by maintainers)
Hello from 2019. Unfortunately it didn’t help me. I still see ‘Compiling …’.
I’ve described my issue here https://github.com/zeit/next-plugins/issues/419#issuecomment-473806423
Any ideas?
Thanks.
UPD
It doesn’t matter anymore. I’ve fixed my problem.
Tx for the answer. I did try to uncomment parts of the scss file but to no avail. It looks like it doesn’t compile the file and just hangs there. Here is a repo https://github.com/asherccohen/next-starter that I bootstrapped to show scss doesn’t compile.
Solution was found!!! Just remove folder node_modules and after that use only yarn package manager.