Traffic counter IOT device
lems45
HOBBYOP

2 years ago

is giving me an error about the address of a file that is there. When I run the npm run build of the frontend locally, I don't get this error.

Could not resolve "../../../frontend/theme" from "src/components/Header.jsx"
file: /app/src/components/Header.jsx

7.792 error during build:

7.792 RollupError: Could not resolve "../../../frontend/theme" from "src/components/Header.jsx"

7.792 at error (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)

7.792 at ModuleLoader.handleInvalidResolvedId (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:24860:24)

7.792 at file:///app/node_modules/rollup/dist/es/shared/node-entry.js:24822:26

Dockerfile:24

22 | # build phase

23 | COPY . /app/.

24 | >>> RUN --mount=type=cache,id=s/aef9258e-1cec-4c76-a291-5fefb6b3d6cd-nodemodules/cache,target=/app/nodemodules/.cache npm run build

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1
Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies

2 years ago

Are you aware you opened just under 20 posts?


Loading...