Building fails on Windows with the same SCSS files that work on Linux
#13,514 opened on Dec 10, 2024
Repository metrics
- Stars
- (44,781 stars)
- PR merge metrics
- (Avg merge 9d 9h) (21 merged PRs in 30d)
Description
The version of Meteor showing the problem: 3.0.4 The same version of meteor run under WSL/Linux/OSX does not fail. Only fails on Windows. Fails on multiple machines. The operating system you're running Meteor on: Win 11 Pro and Enterprise The expected behavior: To build and run the app. This is a working (and deployed) application The actual behavior:
`=> Started proxy. => Started HMR server. => Meteor 3.0.4 is available. Check the changelog https://docs.meteor.com/history.html and update this project with 'meteor update'. C:\Users\XXX\AppData\Local.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\runners\run-app.js:380 throw e; ^
Error: _get "data" called for file with pending errors | ERROR: {"message":"SASS Compiler Error: Error: File to import: XDOTX/stylesXDOTXscss not found in file: /C/Users/XXX/Documents/YYY/repos/PROJECT-NAME/{}/imports/ui/scss/root.scss\n ╷\n1 │ @import 'XDOTX/stylesXDOTXscss';\n │ ^^^^^^^^^^^^^^^^^^^^^^^\n ╵\n {}\imports\ui\scss\root.scss 1:9 root stylesheet\n","info":{"file":"/imports/ui/scss/root.scss"}} at CssOutputResource._get (C:\tools\isobuild\compiler-plugin.js:980:13) at CompilerPluginProcessor.minifyCssResource (C:\tools\isobuild\bundler.js:1129:14) at C:\tools\isobuild\compiler-plugin.js:735:19 at JsOutputResource.finalize (C:\tools\isobuild\compiler-plugin.js:938:7) at JsOutputResource.hasPendingErrors (C:\tools\isobuild\compiler-plugin.js:943:5) at JsOutputResource.reportPendingErrors (C:\tools\isobuild\compiler-plugin.js:948:9) at ImportScanner.scanFile (C:\Users\XXX\AppData\Local.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\isobuild\tools\isobuild\import-scanner.ts:1085:9) at ImportScanner.scanFile (C:\Users\XXX\AppData\Local.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\isobuild\tools\isobuild\import-scanner.ts:1144:9) at ImportScanner.scanImports (C:\Users\XXX\AppData\Local.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\isobuild\tools\isobuild\import-scanner.ts:741:9) at Function.computeJsOutputFilesMap (C:\tools\isobuild\compiler-plugin.js:1404:9) at ClientTarget._emitResources (C:\tools\isobuild\bundler.js:1166:30) at C:\tools\isobuild\bundler.js:861:7 at Object.enterJob (C:\tools\utils\buildmessage.js:387:12) at ClientTarget.make (C:\tools\isobuild\bundler.js:849:5) at C:\tools\isobuild\bundler.js:3293:7 at C:\tools\isobuild\bundler.js:3452:25 at Object.capture (C:\tools\utils\buildmessage.js:282:5) at bundle (C:\tools\isobuild\bundler.js:3274:18) at bundleApp (C:\tools\runners\run-app.js:584:26) at AppRunner._runOnce (C:\tools\runners\run-app.js:629:35) at AppRunner._runApp (C:\tools\runners\run-app.js:951:23)
Node.js v20.17.0`
When trying to compile, running on Windows, I get errors relating to “SASS Compiler Error” and there appear to be paths that are being transformed and injected somewhere, but wrongly or incompletely.
The error could be something in an scss file, but again it works on linux. There are no real errors that are output and this type of error I am told is unexpected for meteor and it should be able to pinpoint the issue. There is no actual file located where it is looking. It is being transformed. There is no reasonable way to package the solution for reproduction as it is thousands of proprietary files. There is also no reasonable way to individually stop including scss files to find if any one of them are an issue, as again, there are hundreds of them.
Hoping this issue can be figured out. If we can't build reliably on multiple systems, we will just move away from meteor.