Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VITE BUILD no found in dockerfile #17408

Closed
7 tasks done
VigilioYonatan opened this issue Jun 7, 2024 · 0 comments
Closed
7 tasks done

VITE BUILD no found in dockerfile #17408

VigilioYonatan opened this issue Jun 7, 2024 · 0 comments

Comments

@VigilioYonatan
Copy link

Describe the bug

VITE BUILD no found in dockerfile, but it found in normal windows 10 docker. in windows 10 is ok byut in dockerfile command to create image show error.

resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Thin.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Light.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Regular.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Bold.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/Exo-Black.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-brands-400.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-regular-400.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-solid-900.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-duotone-900.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-sharp-regular-400.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 29.22
#15 29.22 /fonts/fontawesome/fa-sharp-solid-900.ttf referenced in /usr/src/app/resources/css/index.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
#15 35.47 ✓ 2579 modules transformed.
#15 35.47 x Build failed in 12.21s
#15 35.47 error during build:
#15 35.47 node_modules/.pnpm/@hookform+resolvers@3.6.0_react-hook-form@7.51.5_react@18.3.1_/node_modules/@hookform/resolvers/valibot/dist/valibot.mjs (1:125): "getDotPath" is not exported by "node_modules/.pnpm/valibot@0.20.1/node_modules/valibot/dist/index.js", imported by "node_modules/.pnpm/@hookform+resolvers@3.6.0_react-hook-form@7.51.5_react@18.3.1_/node_modules/@hookform/resolvers/valibot/dist/valibot.mjs".
#15 35.47 file: /usr/src/app/node_modules/.pnpm/@hookform+resolvers@3.6.0_react-hook-form@7.51.5_react@18.3.1_/node_modules/@hookform/resolvers/valibot/dist/valibot.mjs:1:125
#15 35.47
#15 35.47 1: import{toNestErrors as r}from"@hookform/resolvers";import{appendErrors as e}from"react-hook-form";import{safeParseAsync as t,getDotPath...
#15 35.47 ^
#15 35.47 2: //# sourceMappingURL=valibot.module.js.map
#15 35.47
#15 35.47 at getRollupError (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
#15 35.47 at error (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
#15 35.47 at Module.error (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:13858:16)
#15 35.47 at Module.traceVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:14306:29)
#15 35.47 at ModuleScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:11984:39)
#15 35.47 at ChildScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionBodyScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at ChildScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionBodyScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at BlockScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at ChildScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at FunctionBodyScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at TrackingScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at BlockScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at BlockScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at BlockScope.findVariable (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:7432:38)
#15 35.47 at Identifier.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:6908:40)
#15 35.47 at CallExpression.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
#15 35.47 at CallExpression.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:9135:15)
#15 35.47 at VariableDeclarator.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
#15 35.47 at VariableDeclaration.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
#15 35.47 at BlockStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
#15 35.47 at ForStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
#15 35.47 at BlockStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
#15 35.47 at IfStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
#15 35.47 at BlockStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js
#15 35.47 ... and 21 lines more
#15 35.52  ELIFECYCLE  Command failed with exit code 1.
#15 ERROR: process "/bin/sh -c pnpm build:serve && pnpm build:dev && pnpm prune --prod" did not complete successfully: exit code: 1

[build 3/3] RUN pnpm build:serve && pnpm build:dev && pnpm prune --prod:
35.47 at CallExpression.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:9135:15)
35.47 at VariableDeclarator.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
35.47 at VariableDeclaration.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
35.47 at BlockStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
35.47 at ForStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
35.47 at BlockStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4771:28)
35.47 at IfStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:4775:23)
35.47 at BlockStatement.bind (file:///usr/src/app/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js
35.47 ... and 21 lines more
35.52  ELIFECYCLE  Command failed with exit code 1.


Dockerfile:62

60 | COPY --from=dependencies /usr/src/app/node_modules ./node_modules
61 | COPY . .
62 | >>> RUN pnpm build:serve && pnpm build:dev && pnpm prune --prod
63 |
64 | FROM base AS production

ERROR: failed to solve: process "/bin/sh -c pnpm build:serve && pnpm build:dev && pnpm prune --prod" did not complete successfully: exit code: 1

Reproduction

x

Steps to reproduce

No response

System Info

windows 10
"vite": "^5.2.12",
i am not use package.json y type:module
vite.config.mjs because my backend no use type module

Used Package Manager

pnpm

Logs

No response

Validations

@vitejs vitejs locked and limited conversation to collaborators Jun 7, 2024
@bluwy bluwy converted this issue into discussion #17412 Jun 7, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant