Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Build failed while running npm run build on blues stack #229

Open
@crazydreamproject

Description

@crazydreamproject

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

On Windows10, with docker desktop 4.25.1, node v20.11.0, npm 10.3.0

Used Package Manager

npm

Expected Behavior

$ npm run build to complete successfully

Actual Behavior

npm run build

build
run-s build:*

build:remix
remix build

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]

app/root.tsx:1:30:
  1 │ import { cssBundleHref } from "@remix-run/css-bundle";
    ╵                               ~~~~~~~~~~~~~~~~~~~~~~~

This error came from the "onLoad" callback registered here:

node_modules/@remix-run/dev/dist/compiler/plugins/cssBundlePlugin.js:35:12:
  35 │       build.onLoad({
     ╵             ~~~~~~

at setup (C:\Users\CDP\GitHub\remix-blues-test\node_modules\@remix-run\dev\dist\compiler\plugins\cssBundlePlugin.js:35:13)
at handlePlugins (C:\Users\CDP\GitHub\remix-blues-test\node_modules\@remix-run\dev\node_modules\esbuild\lib\main.js:1279:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

X [ERROR] entry file not found [plugin css-file]

node_modules/@remix-run/dev/dist/compiler/plugins/cssImports.js:174:30:
  174 │           invariant["default"](entryFile, "entry file not found");
      ╵                               ^

at Object.invariant [as default] (C:\Users\CDP\GitHub\remix-blues-test\node_modules\@remix-run\dev\dist\invariant.js:18:11)
at C:\Users\CDP\GitHub\remix-blues-test\node_modules\@remix-run\dev\dist\compiler\plugins\cssImports.js:174:31
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

This error came from the "onLoad" callback registered here:

node_modules/@remix-run/dev/dist/compiler/plugins/cssImports.js:77:12:
  77 │       build.onLoad({
     ╵             ~~~~~~

at setup (C:\Users\CDP\GitHub\remix-blues-test\node_modules\@remix-run\dev\dist\compiler\plugins\cssImports.js:77:13)
at handlePlugins (C:\Users\CDP\GitHub\remix-blues-test\node_modules\@remix-run\dev\node_modules\esbuild\lib\main.js:1279:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

The plugin "css-file" was triggered by this import

app/root.tsx:14:23:
  14 │ import stylesheet from "~/tailwind.css";
     ╵                        ~~~~~~~~~~~~~~~~

ERROR: "build:remix" exited with 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions