6 months ago
After updating Next version with Dify project, I'm getting deployment error below.
ERROR: failed to solve: process "/bin/sh -c yarn build" did not complete successfully:
exit code: 1
ⓘ Deployment information is only viewable by project members and Railway employees.
3 Replies
6 months ago
Full log:
#16 [builder 4/4] RUN yarn build
#16 0.407 yarn run v1.22.22
#16 0.457 $ next build
#16 1.880 Attention: Next.js now collects completely anonymous telemetry regarding usage.
#16 1.881 This information is used to shape Next.js' roadmap and prioritize features.
#16 1.881 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
#16 1.881 https://nextjs.org/telemetry
#16 1.881
#16 1.987 ▲ Next.js 15.0.3
#16 1.987
#16 2.175 Creating an optimized production build ...
#16 158.8 Failed to compile.
#16 158.8
#16 158.8 ./node_modules/@headlessui/react/dist/utils/stable-collection.js
#16 158.8 Attempted import error: '__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' is not exported from 'react' (imported as 'r').
#16 158.8
#16 158.8 Import trace for requested module:
#16 158.8 ./node_modules/@headlessui/react/dist/utils/stable-collection.js
#16 158.8 ./node_modules/@headlessui/react/dist/components/tabs/tabs.js
#16 158.8 __barrel_optimize__?names=Tab!=!./node_modules/@headlessui/react/dist/headlessui.esm.js
#16 158.8 ./app/components/develop/code.tsx
#16 158.8 ./app/components/develop/template/template.en.mdx
#16 158.8 ./app/components/develop/doc.tsx
#16 158.8 ./app/components/develop/index.tsx
#16 158.8
#16 158.8
#16 158.8 > Build failed because of webpack errors
#16 159.1 error Command failed with exit code 1.
#16 159.1 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
#16 ERROR: process "/bin/sh -c yarn build" did not complete successfully: exit code: 1
-----
> [builder 4/4] RUN yarn build:
158.8 __barrel_optimize__?names=Tab!=!./node_modules/@headlessui/react/dist/headlessui.esm.js
158.8 ./app/components/develop/code.tsx
158.8 ./app/components/develop/template/template.en.mdx
158.8 ./app/components/develop/doc.tsx
158.8 ./app/components/develop/index.tsx
158.8
158.8
158.8 > Build failed because of webpack errors
159.1 error Command failed with exit code 1.
159.1 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
-----
Dockerfile:30
-------------------
28 | COPY . .
29 |
30 | >>> RUN yarn build
31 |
32 |
-------------------
ERROR: failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code: 1
6 months ago
deployment ID: 2461b1ef-b717-4c54-ba9f-3b8c5e4940d1
Status changed to Closed brody • 6 months ago