Cannot build the exact master branch

Hi!

My repository is updated with the most recent upstream master, and I have no change. When I run ‘npm install’, it was no problem. But then when I run ‘npm run start’, it got 46 webpack errors. Like:

[cdn-server] ERROR in …/nodeEditor/dist/main.scss (…/…/…/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!../…/…/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../nodeEditor/dist/main.scss)
[cdn-server] Module build failed (from …/…/…/node_modules/css-loader/dist/cjs.js):
[cdn-server] Error: PostCSS received undefined instead of CSS string
[cdn-server] at new Input (C:\BabylonJS\Babylon.js-1\node_modules\postcss\lib\input.js:24:13)
[cdn-server] at parse (C:\BabylonJS\Babylon.js-1\node_modules\postcss\lib\parse.js:8:15)
[cdn-server] at new LazyResult (C:\BabylonJS\Babylon.js-1\node_modules\postcss\lib\lazy-result.js:133:16)
[cdn-server] at Processor.process (C:\BabylonJS\Babylon.js-1\node_modules\postcss\lib\processor.js:28:14)
[cdn-server] at Object.loader (C:\BabylonJS\Babylon.js-1\node_modules\css-loader\dist\index.js:128:51)
[cdn-server] @ …/nodeEditor/dist/main.scss 8:6-213 22:17-24 26:0-183 26:0-183 27:22-29 27:33-47 27:50-64
[cdn-server] @ …/nodeEditor/dist/graphEditor.js 20:0-21
[cdn-server] @ …/nodeEditor/dist/nodeEditor.js 4:0-44 36:48-59
[cdn-server] @ …/nodeEditor/dist/index.js 1:0-29 1:0-29
[cdn-server] @ ./src/nodeEditor/index.ts 2:0-47 6:38-48 8:32-42 10:0-34 10:0-34
[cdn-server]
[cdn-server] 23 errors have detailed information that is not shown.
[cdn-server] Use ‘stats.errorDetails: true’ resp. ‘–stats-error-details’ to show it.
[cdn-server]
[cdn-server] webpack 5.70.0 compiled with 46 errors in 908 ms

My node version: v16.13.2, npm version: 8.1.2.

Thanks!!

Have a look at the build system docs:
Babylon.js/buildSystem.md at master · BabylonJS/Babylon.js (github.com)

I think you want to serve instead of start. Otherwise make sure you didn’t change node versions after your first install, since those are binary specific. You can clear out your node_modules and re-install if that’s the case.

1 Like

Hello @Sunny just checking in, was your question answered?