Spaces:
Running
Error after dublication HF chat App
I duplicated the space an run it on CPU upgrade, but get error: "ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1"
I did the changes in DOTENV: put in my HF_ACCESS_TOKEN and MongoDB URL.
But still the error.
Do I have to run it on s special hardware or is there some internal error?
Hey, would it be possible to get the full error log ? I'm not sure what the issue might be from this...
Here is the complete error log:
--> FROM docker.io/library/node:19-slim@sha256:f58f1fcf5c9ff9e3752993edb4ed6dbd35697124c85a43f3b97aa054500b0534
DONE 0.0s
--> FROM docker.io/library/node:19@sha256:92f06fc13bcc09f1ddc51f6ebf1aa3d21a6532b74f076f224f188bc6b9317570
DONE 0.0s
--> WORKDIR /app
CACHED
--> RUN --mount=type=cache,target=/app/.npm npm set cache /app/.npm && npm ci --omit=dev
CACHED
--> COPY --link --chown=1000 package-lock.json package.json ./
CACHED
--> COPY --link --chown=1000 . .
DONE 0.0s
--> RUN --mount=type=cache,target=/app/.npm npm set cache /app/.npm && npm ci
--> COPY --link --chown=1000 . .
DONE 1.7s
--> RUN --mount=type=cache,target=/app/.npm npm set cache /app/.npm && npm ci
DONE 3.1s
--> COPY --link --chown=1000 . .
DONE 4.8s
DONE 6.0s
DONE 7.7s
--> RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local npm run build
chat-ui@0.3.0 build
vite build
ā² [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
tsconfig.json:2:12:
2 ā "extends": "./.svelte-kit/tsconfig.json",
āµ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(node:19) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use node --trace-warnings ...
to show where the warning was created)
(node:19) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
vite v4.3.5 building SSR bundle for production...
transforming...
"BaseClient" and "TokenSet" are imported from external module "openid-client" but never used in "src/lib/server/auth.ts".
ā 165 modules transformed.
rendering chunks...
(node:67) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use node --trace-warnings ...
to show where the warning was created)
(node:67) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
undefined:1
[
SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at file:///app/.svelte-kit/output/server/chunks/models.js:38:14
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
Node.js v19.9.0
[vite-plugin-sveltekit-compile] Failed with code 1
ā built in 2.83s
error during build:
Error: Failed with code 1
at ChildProcess. (file:///app/node_modules/@sveltejs/kit/src/utils/fork.js:68:13)
at ChildProcess.emit (node:events:513:28)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm notice
npm notice New minor version of npm available! 9.6.3 -> 9.7.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.7.1
npm notice Run npm install -g npm@9.7.1
to update!
npm notice
--> ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1