Open crazydreamproject opened 10 months ago
Some more info: I'm using remix v2.5.0, changing to 2.5.1 has same issue. CUI I'm using is Nodejs command prompt (installed by node.js installer) When I change CUI to gitbash, npm run build exited successfully.
Hope this helps,
This must have something to do with the node command prompt you're using since it works in gitbash (and I also confirmed it all runs fine on my OSX machine). I'm going to transfer this to the blues-stack repo as an issue specific to that setup when using the node command prompt.
Reproduction
Do following commands (on Node.js command prompt)
$ npx create-remix@latest --template remix-run/blues-stack $ npm run docker (wait a while until you see LOG: database system is ready to accept connections in docker logs) $ npm run setup $ npm run build
System Info
Used Package Manager
npm
Expected Behavior
$ npm run build to complete successfully
Actual Behavior
info building... (NODE_ENV=production) The following error is a bug in Remix; please open an issue! https://github.com/remix-run/remix/issues/new The following error is a bug in Remix; please open an issue! https://github.com/remix-run/remix/issues/new X [ERROR] Build failed with 1 error: node_modules/@remix-run/dev/dist/compiler/plugins/cssImports.js:174:30: ERROR: [plugin: css-file] entry file not found [plugin css-bundle-plugin]
This error came from the "onLoad" callback registered here:
X [ERROR] entry file not found [plugin css-file]
This error came from the "onLoad" callback registered here:
The plugin "css-file" was triggered by this import
ERROR: "build:remix" exited with 1.