2.x to 3.x upgrade error
Solved
Technical Support
-
Hi,
I'm getting the below on a v2.x dev install to v.3
- 1:9 root stylesheet at handleCompileResponse (/home/ubuntu/nodebb/node_modules/sass-embedded/dist/lib/src/compile.js:227:15) at compileRequestAsync (/home/ubuntu/nodebb/node_modules/sass-embedded/dist/lib/src/compile.js:115:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.buildCSS (/home/ubuntu/nodebb/src/meta/minifier.js:161:21) at async executeAction (/home/ubuntu/nodebb/src/meta/minifier.js:139:9) at async Minifier.css.bundle (/home/ubuntu/nodebb/src/meta/minifier.js:193:9) at async CSS.buildBundle (/home/ubuntu/nodebb/src/meta/css.js:221:23) at async client side styles (/home/ubuntu/nodebb/src/meta/build.js:36:3) at async step (/home/ubuntu/nodebb/src/meta/build.js:117:3) at async buildTargets (/home/ubuntu/nodebb/src/meta/build.js:105:4) 2023-04-03T11:57:41.204Z [4567/177237] - error: Error: Error: Can't find stylesheet to import. ╷ 1 │ @import "bootswatch/dist/readable/variables"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ - 1:9 root stylesheet at handleCompileResponse (/home/ubuntu/nodebb/node_modules/sass-embedded/dist/lib/src/compile.js:227:15) at compileRequestAsync (/home/ubuntu/nodebb/node_modules/sass-embedded/dist/lib/src/compile.js:115:16) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.buildCSS (/home/ubuntu/nodebb/src/meta/minifier.js:161:21) at async executeAction (/home/ubuntu/nodebb/src/meta/minifier.js:139:9) at async Minifier.css.bundle (/home/ubuntu/nodebb/src/meta/minifier.js:193:9) at async CSS.buildBundle (/home/ubuntu/nodebb/src/meta/css.js:221:23) at async client side styles (/home/ubuntu/nodebb/src/meta/build.js:36:3) at async step (/home/ubuntu/nodebb/src/meta/build.js:117:3) at async buildTargets (/home/ubuntu/nodebb/src/meta/build.js:105:4)
Any ideas ?
Thanks
-
I get a different error attempting to switch the default theme to slick
at async buildTargets (/home/ubuntu/nodebb/src/meta/build.js:105:4) {"date":"Mon Apr 03 2023 12:17:18 GMT+0000 (Coordinated Universal Time)","error":{"sassMessage":"Can't find stylesheet to import.","sassStack":"- 5:9 root stylesheet\n","span":{"context":"@import \"./scss/overrides\";\n","end":{"column":26,"line":4,"offset":126},"start":{"column":8,"line":4,"offset":108},"text":"\"./scss/overrides\""}},"exception":true,"os":{"loadavg":[0.59,0.32,0.22],"uptime":784329.6},"process":{"argv":["/usr/bin/node","/home/ubuntu/nodebb/nodebb","upgrade"],"cwd":"/home/ubuntu/nodebb","execPath":"/usr/bin/node","gid":1000,"memoryUsage":{"arrayBuffers":19436434,"external":21497066,"heapTotal":102318080,"heapUsed":74660488,"rss":171380736},"pid":177834,"uid":1000,"version":"v18.15.0"},"stack":"Error: Error: Can't find stylesheet to import.\n\u001b[34m ╷\u001b[0m\n\u001b[34m5 │\u001b[0m @import \u001b[31m\"./scss/overrides\"\u001b[0m;\n\u001b[34m │\u001b[0m \u001b[31m ^^^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[34m ╵\u001b[0m\n - 5:9 root stylesheet\n at handleCompileResponse (/home/ubuntu/nodebb/node_modules/sass-embedded/dist/lib/src/compile.js:231:15)\n at compileRequestAsync (/home/ubuntu/nodebb/node_modules/sass-embedded/dist/lib/src/compile.js:118:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.buildCSS (/home/ubuntu/nodebb/src/meta/minifier.js:161:21)\n at async executeAction (/home/ubuntu/nodebb/src/meta/minifier.js:139:9)\n at async Minifier.css.bundle (/home/ubuntu/nodebb/src/meta/minifier.js:193:9)\n at async CSS.buildBundle (/home/ubuntu/nodebb/src/meta/css.js:219:23)\n at async client side styles (/home/ubuntu/nodebb/src/meta/build.js:36:3)\n at async step (/home/ubuntu/nodebb/src/meta/build.js:117:3)\n at async buildTargets (/home/ubuntu/nodebb/src/meta/build.js:105:4)","trace":[{"column":15,"file":"/home/ubuntu/nodebb/node_modules/sass-embedded/dist/lib/src/compile.js","function":"handleCompileResponse","line":231,"method":null,"native":false},{"column":16,"file":"/home/ubuntu/nodebb/node_modules/sass-embedded/dist/lib/src/compile.js","function":"compileRequestAsync","line":118,"method":null,"native":false},{"column":5,"file":"node:internal/process/task_queues","function":"process.processTicksAndRejections","line":95,"method":"processTicksAndRejections","native":false},{"column":21,"file":"/home/ubuntu/nodebb/src/meta/minifier.js","function":"async Object.buildCSS","line":161,"method":"buildCSS","native":false},{"column":9,"file":"/home/ubuntu/nodebb/src/meta/minifier.js","function":"async executeAction","line":139,"method":null,"native":false},{"column":9,"file":"/home/ubuntu/nodebb/src/meta/minifier.js","function":"async Minifier.css.bundle","line":193,"method":"bundle","native":false},{"column":23,"file":"/home/ubuntu/nodebb/src/meta/css.js","function":"async CSS.buildBundle","line":219,"method":"buildBundle","native":false},{"column":3,"file":"/home/ubuntu/nodebb/src/meta/build.js","function":"async client side styles","line":36,"method":null,"native":false},{"column":3,"file":"/home/ubuntu/nodebb/src/meta/build.js","function":"async step","line":117,"method":null,"native":false},{"column":4,"file":"/home/ubuntu/nodebb/src/meta/build.js","function":"async buildTargets","line":105,"method":null,"native":false}]}
-
-
@phenomlab said in 2.x to 3.x upgrade error:
I've reset it to default
I have a quite similar error while upgrading:
2023-04-30T12:53:19.067Z [4567/226523] - error: [build] client side styles build failed 2023-04-30T12:53:19.068Z [4567/226523] - error: [build] Encountered error during build step Error occurred during upgrade: Error: Error: Can't find stylesheet to import. ╷ 5 │ @import "./scss/overrides"; │ ^^^^^^^^^^^^^^^^^^ ╵ - 5:9 root stylesheet at handleCompileResponse (/home/nodebb/NodeBB/node_modules/sass-embedded/dist/lib/src/compile.js:231:15) at compileRequestAsync (/home/nodebb/NodeBB/node_modules/sass-embedded/dist/lib/src/compile.js:118:16) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Object.buildCSS (/home/nodebb/NodeBB/src/meta/minifier.js:161:21) at async executeAction (/home/nodebb/NodeBB/src/meta/minifier.js:139:9) at async Minifier.css.bundle (/home/nodebb/NodeBB/src/meta/minifier.js:193:9) at async CSS.buildBundle (/home/nodebb/NodeBB/src/meta/css.js:219:23) at async Object.client side styles (/home/nodebb/NodeBB/src/meta/build.js:36:3) at async step (/home/nodebb/NodeBB/src/meta/build.js:117:3) at async buildTargets (/home/nodebb/NodeBB/src/meta/build.js:105:4) (node:226523) UnhandledPromiseRejectionWarning: Error: Error: Can't find stylesheet to import. ╷ 5 │ @import "./scss/overrides"; │ ^^^^^^^^^^^^^^^^^^ ╵ - 5:9 root stylesheet at handleCompileResponse (/home/nodebb/NodeBB/node_modules/sass-embedded/dist/lib/src/compile.js:231:15) at compileRequestAsync (/home/nodebb/NodeBB/node_modules/sass-embedded/dist/lib/src/compile.js:118:16) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Object.buildCSS (/home/nodebb/NodeBB/src/meta/minifier.js:161:21) at async executeAction (/home/nodebb/NodeBB/src/meta/minifier.js:139:9) at async Minifier.css.bundle (/home/nodebb/NodeBB/src/meta/minifier.js:193:9) at async CSS.buildBundle (/home/nodebb/NodeBB/src/meta/css.js:219:23) at async Object.client side styles (/home/nodebb/NodeBB/src/meta/build.js:36:3) at async step (/home/nodebb/NodeBB/src/meta/build.js:117:3) at async buildTargets (/home/nodebb/NodeBB/src/meta/build.js:105:4) (Use `node --trace-warnings ...` to show where the warning was created) (node:226523) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:226523) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Any ideas? Thanks