@strarsis Thanks for your answer!
The project I am working on is pretty much completed. And here is the package.json from the project. The devDependencies is original Sage 9.0.9.
The dependencies is required from the project.
I did not modify any devDependicies package to keep the development smooth since Sage 9.0.9 is the most stable version.
"devDependencies": {
"autoprefixer": "~8.2.0",
"browser-sync": "~2.24.7",
"browsersync-webpack-plugin": "^0.6.0",
"bs-html-injector": "~3.0",
"buble-loader": "^0.4.1",
"cache-loader": "~1.2.5",
"clean-webpack-plugin": "^0.1.18",
"copy-globs-webpack-plugin": "^0.2.0",
"css-loader": "^0.28.11",
"cssnano": "~4.0.5",
"eslint": "~4.19.1",
"eslint-loader": "~1.9",
"eslint-plugin-import": "~2.14.0",
"extract-text-webpack-plugin": "~3.0.2",
"file-loader": "^1.1.6",
"friendly-errors-webpack-plugin": "^1.6.1",
"imagemin-mozjpeg": "~7.0.0",
"imagemin-webpack-plugin": "~2.2.0",
"import-glob": "~1.5",
"node-sass": "~4.9.4",
"postcss-loader": "~2.1.0",
"postcss-safe-parser": "~3.0",
"resolve-url-loader": "~2.3.1",
"rimraf": "~2.6",
"sass-loader": "~6.0",
"style-loader": "^0.22.1",
"stylelint": "^8.4.0",
"stylelint-config-standard": "~18.2.0",
"stylelint-webpack-plugin": "^0.10.5",
"uglifyjs-webpack-plugin": "^1.3.0",
"url-loader": "^0.6.2",
"webpack": "~3.10.0",
"webpack-assets-manifest": "^1.0.0",
"webpack-dev-middleware": "~2.0.4",
"webpack-hot-middleware": "~2.22.3",
"webpack-merge": "~4.1.4",
"yargs": "~11.0.0"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-brands-svg-icons": "^5.15.1",
"@fortawesome/free-regular-svg-icons": "^5.15.1",
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"bootstrap": "v4.5.3",
"jquery": "^3.3.1",
"jquery-match-height": "^0.7.2",
"js-cookie": "^2.2.1",
"lozad": "^1.16.0",
"popper.js": "^1.14.7",
"slick-carousel": "^1.8.1"
The whole error message is here:
ERROR Failed to compile with 2 errors 10:24:41 AM
error in ./resources/assets/styles/main.scss
Module build failed: ModuleBuildError: Module build failed: TypeError: Cannot read property 'toFixed' of undefined
at strongRound (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\plugins\convertPathData.js:766:21)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\plugins\convertPathData.js:424:17
at Array.filter (<anonymous>)
at filters (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\plugins\convertPathData.js:272:17)
at Object.exports.fn (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\plugins\convertPathData.js:79:20)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:59:45
at Array.filter (<anonymous>)
at monkeys (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:46:39)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:66:17
at Array.filter (<anonymous>)
at monkeys (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:46:39)
at perItem (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:77:12)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:18:24
at Array.forEach (<anonymous>)
at module.exports (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:14:13)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo.js:63:17
at SAXParser.sax.onend (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\svg2js.js:156:13)
at emit (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\sax\lib\sax.js:624:35)
at end (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\sax\lib\sax.js:667:5)
at SAXParser.write (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\sax\lib\sax.js:975:14)
at SAXParser.close (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\sax\lib\sax.js:157:38)
at module.exports (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\svg2js.js:169:28)
at module.exports.SVGO._optimizeOnce (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo.js:56:5)
at module.exports.SVGO.optimize (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo.js:49:11)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\dist\index.js:64:25
at new Promise (<anonymous>)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\dist\index.js:63:23
at walk (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-value-parser\lib\walk.js:7:16)
at ValueParser.walk (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-value-parser\lib\index.js:18:3)
at minifyPromise (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\dist\index.js:33:64)
at runLoaders (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\webpack\lib\NormalModule.js:195:19)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at Object.<anonymous> (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\css-loader\lib\loader.js:50:18)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\css-loader\lib\processCss.js:236:4
@ multi ./scripts/main.js ./styles/main.scss
error in ./resources/assets/styles/main.scss
Module build failed: ModuleBuildError: Module build failed: TypeError: Cannot read property 'toFixed' of undefined
at strongRound (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\plugins\convertPathData.js:766:21)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\plugins\convertPathData.js:424:17
at Array.filter (<anonymous>)
at filters (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\plugins\convertPathData.js:272:17)
at Object.exports.fn (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\plugins\convertPathData.js:79:20)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:59:45
at Array.filter (<anonymous>)
at monkeys (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:46:39)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:66:17
at Array.filter (<anonymous>)
at monkeys (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:46:39)
at perItem (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:77:12)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:18:24
at Array.forEach (<anonymous>)
at module.exports (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\plugins.js:14:13)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo.js:63:17
at SAXParser.sax.onend (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\svg2js.js:156:13)
at emit (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\sax\lib\sax.js:624:35)
at end (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\sax\lib\sax.js:667:5)
at SAXParser.write (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\sax\lib\sax.js:975:14)
at SAXParser.close (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\sax\lib\sax.js:157:38)
at module.exports (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo\svg2js.js:169:28)
at module.exports.SVGO._optimizeOnce (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo.js:56:5)
at module.exports.SVGO.optimize (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\node_modules\svgo\lib\svgo.js:49:11)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\dist\index.js:64:25
at new Promise (<anonymous>)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\dist\index.js:63:23
at walk (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-value-parser\lib\walk.js:7:16)
at ValueParser.walk (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-value-parser\lib\index.js:18:3)
at minifyPromise (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\postcss-svgo\dist\index.js:33:64)
at runLoaders (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\webpack\lib\NormalModule.js:195:19)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at Object.<anonymous> (C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\css-loader\lib\loader.js:50:18)
at C:\Users\LinhPham\Local Sites\500maas\app\public\web\app\themes\500maas-product\node_modules\css-loader\lib\processCss.js:236:4
3 assets
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I really don’t know what to update or which package should I update.