chat-ui icon indicating copy to clipboard operation
chat-ui copied to clipboard

Cannot build using latest Chat UI Space template

Open simon376 opened this issue 1 year ago • 1 comments

Using the Dockerfile created from the ChatUI-Space template, but cloning it to a local machine and trying to build it fails at npm run build

#18 [chatui-builder 12/12] RUN npm run build #0 0.673 #0 0.673 > [email protected] build #0 0.673 > vite build #0 0.673 #0 1.678 vite v4.3.9 building SSR bundle for production... #0 1.678 #0 1.707 transforming... #0 4.381 "BaseClient" and "TokenSet" are imported from external module "openid-client" but never used in "src/lib/server/auth.ts". #0 4.381 ✓ 210 modules transformed. #0 4.473 rendering chunks... #0 5.665 #0 5.665 node:internal/event_target:1036 #0 5.665 process.nextTick(() => { throw err; }); #0 5.665 ^ #0 5.666 SyntaxError [Error]: Bad control character in string literal in JSON at position 157 #0 5.666 at JSON.parse () #0 5.666 at file:///app/chat-ui/.svelte-kit/output/server/chunks/models.js:512:51 #0 5.666 at ModuleJob.run (node:internal/modules/esm/module_job:193:25) #0 5.666 Emitted 'error' event on Worker instance at: #0 5.666 at [kOnErrorMessage] (node:internal/worker:309:10) #0 5.666 at [kOnMessage] (node:internal/worker:320:37) #0 5.666 at MessagePort. (node:internal/worker:216:57) #0 5.666 at [nodejs.internal.kHybridDispatch] (node:internal/event_target:761:20) #0 5.666 at exports.emitMessage (node:internal/per_context/messageport:23:28) #0 5.666 #0 5.666 Node.js v19.9.0 #0 5.751 npm notice #0 5.751 npm notice New major version of npm available! 9.6.3 -> 10.2.4 #0 5.751 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.4 #0 5.751 npm notice Run npm install -g [email protected] to update! #0 5.751 npm notice #18 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1 #------ #> [chatui-builder 12/12] RUN npm run build: #0 5.666 at MessagePort. (node:internal/worker:216:57) #0 5.666 at [nodejs.internal.kHybridDispatch] (node:internal/event_target:761:20) #0 5.666 at exports.emitMessage (node:internal/per_context/messageport:23:28) #0 5.666 #0 5.666 Node.js v19.9.0 #0 5.751 npm notice #0 5.751 npm notice New major version of npm available! 9.6.3 -> 10.2.4 #0 5.751 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.4 #0 5.751 npm notice Run npm install -g [email protected] to update! #0 5.751 npm notice #------ #Dockerfile:49 #-------------------- #47 | npm ci #48 | #49 | >>> RUN npm run build #50 | #51 | FROM ghcr.io/huggingface/text-generation-inference:latest #-------------------- #ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

simon376 avatar Nov 23 '23 12:11 simon376

I am also facing the same issue, is there a fix for this yet @nsarrazin?

awinml avatar Nov 25 '23 13:11 awinml