Skip to content
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

Node Build Failing #2

Open
bbqchickenrobot opened this issue May 31, 2024 · 1 comment
Open

Node Build Failing #2

bbqchickenrobot opened this issue May 31, 2024 · 1 comment

Comments

@bbqchickenrobot
Copy link

>>>> Executing external compose provider "C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker-compose.exe". Please refer to the documentation for details. <<<<

Sending build context to Docker daemon  27.61kB
[1/3] STEP 1/5: FROM node:latest AS frotend
[1/3] STEP 2/5: WORKDIR /frontend
--> Using cache b0197d49b4b7efca35c8763bc3415477da78aadd829f00971bf1430a8b9fa46a
--> b0197d49b4b7
[1/3] STEP 3/5: COPY ./PassKeys.WebApp/Frontend .
--> Using cache 1791870ea8828a7b7a0899a89ce5895f34e82af268922b07978dcb6971ed03bc
--> 1791870ea882
[1/3] STEP 4/5: RUN npm install
--> Using cache 4ec48ff698b593f0befceae9ecfb1ee6b7a63aba68a7ef9d9765083e89b83624
--> 4ec48ff698b5
[1/3] STEP 5/5: RUN npm run build

> [email protected] build
> vue-tsc && vite build

failed to load config from /frontend/vite.config.ts
error during build:
SyntaxError: Unexpected identifier 'assert'
    at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:163:18)
    at callTranslator (node:internal/modules/esm/loader:430:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:436:30)
building at STEP "RUN npm run build": while running runtime: exit status 1

Error: executing C:\Program Files\Docker\Docker\resources\bin\docker-compose.exe up: exit status 1

any recommendations here ?

@CHIUKEN
Copy link

CHIUKEN commented Dec 17, 2024

The FROM node:latest AS frontend has been updated to FROM node:18 AS frontend to ensure a stable Node.js version and avoid potential issues with the latest tag.

FROM node:18 AS frontend
WORKDIR /frontend
COPY ./PassKeys.WebApp/Frontend .
RUN npm install
RUN npm run build

... 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants