Hi i am new to plasmic and am facing issues with the docker deployment method i already did research the past few hours but couldn’t find any topics with the same issue, when i run the command sudo docker compose up -d the wab image fails at the last step to build. here is the result i had to shrink it as it seems we are having a character limit here and i removed some information not related to the error. Usually i try to fix it my self or use ai for help before bothering other people having enough to do but i really hit a wall here, THANKS TO CHATGPT i wasted already an hour by presenting it with all kinds of logs, outputs etc. but it couldn’t really figure it out either. I hope there is a solution as i also went trough documentation etc. but couldn’t find apart from running it outside of docker any other information. In case something was missing from the cloning i have already 3 times recloned it from github.:
=> ERROR [builder 6/6] RUN mkdir -p /tmp/.plasmic && cp platform/wab/tools/docker-dev/secrets.json /tmp/.p 309.8s
[builder 6/6] RUN mkdir -p /tmp/.plasmic && cp platform/wab/tools/docker-dev/secrets.json /tmp/.plasmic/secrets.json && pnpm setup && pnpm setup:canvas-packages:
3.856 ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-11.8.0.tgz
11.42 Scope: all 83 workspace projects
12.59 ? Verifying lockfile against supply-chain policies (3376 entries)…
12.82 Lockfile is up to date, resolution step is skipped
13.70 Progress: resolved 1, reused 0, downloaded 0, added 0
14.61 Packages: +3162
14.61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14.79 Progress: resolved 3162, reused 0, downloaded 0, added 0
16.82 [WARN] Tarball download average speed 17 KiB/s (size 19 KiB) is below 50 KiB/s: https://registry.npmjs.org/jju/-/jju-1.4.0.tgz (GET)
17.03 [WARN] Tarball download average speed 28 KiB/s (size 31 KiB) is below 50 KiB/s: https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz (GET)
17.32
17.32 ╭───────────────────────────────────────────────╮
17.32 │ │
17.32 │ Update available! 11.8.0 → 11.24.0. │
17.32 │ Changelog: Release pnpm 11.24 · pnpm/pnpm · GitHub │
17.32 │ To update, run: corepack use pnpm@11.24.0 │
17.32 │ │
17.32 ╰───────────────────────────────────────────────╯
17.32
200.3 [WARN] Failed to create bin at /plasmic/packages/create-plasmic-app/node_modules/.bin/plasmic. ENOENT: no such file or directory, open ‘/plasmic/packages/cli/dist/index.js’
206.5 [WARN] Failed to create bin at /plasmic/node_modules/.bin/create-plasmic-app. ENOENT: no such file or directory, open ‘/plasmic/node_modules/create-plasmic-app/dist/index.js’
206.5 [WARN] Failed to create bin at /plasmic/node_modules/.bin/plasmic. ENOENT: no such file or directory, open ‘/plasmic/node_modules/@plasmicapp/cli/dist/index.js’
206.5 [WARN] Failed to create bin at /plasmic/node_modules/.bin/with-plasmic-prepass. ENOENT: no such file or directory, open ‘/plasmic/node_modules/@plasmicapp/nextjs-app-router/dist/with-plasmic-prepass.cjs.js’
207.5
207.5 devDependencies:
207.5 + @microsoft/api-extractor 7.38.2
207.5 + @size-limit/preset-small-lib 11.2.0
207.5 + @storybook/addon-essentials 8.5.5
207.5 + @storybook/addon-interactions 8.5.5
207.5 + @storybook/addon-links 8.5.5
207.5 + @storybook/addon-webpack5-compiler-swc 2.1.0
207.5 + @storybook/react 8.5.5
207.5 + @storybook/react-webpack5 8.5.5
207.5 + @storybook/test 8.5.5
207.5 + @storybook/test-runner 0.21.0
207.5 + @storybook/testing-library 0.2.2
207.5 + @testing-library/react 16.2.0
207.5 + @typescript-eslint/eslint-plugin 6.21.0
207.5 + @typescript-eslint/parser 6.21.0
207.5 + esbuild 0.28.2
207.5 + esbuild-register 3.6.0
207.5 + eslint 8.57.1
207.5 + eslint-config-prettier 9.1.0
207.5 + eslint-import-resolver-typescript 3.10.1
207.5 + eslint-plugin-import 2.32.0
207.5 + eslint-plugin-no-relative-import-paths 1.6.1
207.5 + eslint-plugin-prettier 5.5.6
207.5 + eslint-plugin-react 7.37.5
207.5 + eslint-plugin-react-hooks 4.6.2
207.5 + husky 9.1.7
207.5 + if-env 1.0.4
207.5 + knip 5.64.1
207.5 + lerna 9.0.3
207.5 + lint-staged 16.1.4
207.5 + msw 2.7.3
207.5 + msw-storybook-addon 2.0.4
207.5 + nx 22.3.3
207.5 + prettier 2.8.8
207.5 + prettier-plugin-organize-imports 4.3.0
207.5 + size-limit 11.2.0
207.5 + storybook 8.5.5
207.5 + storybook-addon-mock 5.0.0
207.5 + tsconfig-paths 4.2.0
207.5 + tstyche 4.3.0
207.5 + tsx 4.23.11
207.5 + typescript 5.2.2
207.5 + vite 8.1.5
207.5 + vitest 4.1.10
207.5
208.6 [WARN] Failed to create bin at /plasmic/node_modules/.bin/create-plasmic-app. ENOENT: no such file or directory, open ‘/plasmic/node_modules/create-plasmic-app/dist/index.js’
208.6 [WARN] Failed to create bin at /plasmic/node_modules/.bin/plasmic. ENOENT: no such file or directory, open ‘/plasmic/node_modules/@plasmicapp/cli/dist/index.js’
208.6 [WARN] Failed to create bin at /plasmic/node_modules/.bin/with-plasmic-prepass. ENOENT: no such file or directory, open ‘/plasmic/node_modules/@plasmicapp/nextjs-app-router/dist/with-plasmic-prepass.cjs.js’
208.6 . prepare$ husky
209.1 . prepare: Done
209.1 [WARN] Failed to create bin at /plasmic/packages/create-plasmic-app/node_modules/.bin/plasmic. ENOENT: no such file or directory, open ‘/plasmic/packages/create-plasmic-app/node_modules/@plasmicapp/cli/dist/index.js’
210.0 Done in 3m 21s using pnpm v11.8.0
210.6 $ pnpm install && pnpm setup:wab && pnpm setup:sub && pnpm setup:react-web-bundle && pnpm setup:live-frame && pnpm setup:loader-bundle-env && pnpm setup:loader-html-hydrate && pnpm make
213.5 Scope: all 83 workspace projects
213.6 Already up to date
213.6 Done in 2.5s using pnpm v11.8.0
214.9 $ cd platform && pnpm install
216.4 Scope: all 83 workspace projects
216.4 Already up to date
216.4 Done in 1.3s using pnpm v11.8.0
218.0 $ cd platform/sub && pnpm install && pnpm build
219.7 ? Verifying lockfile against supply-chain policies (347 entries)…
219.7 ✓ Lockfile passes supply-chain policies (347 entries in 26ms)
219.7 Lockfile is up to date, resolution step is skipped
219.8 Progress: resolved 1, reused 0, downloaded 0, added 0
220.0 Packages: +346
220.0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
220.9 Progress: resolved 346, reused 73, downloaded 0, added 0
221.9 Progress: resolved 346, reused 225, downloaded 16, added 4
222.9 Progress: resolved 346, reused 225, downloaded 78, added 8
223.7 Progress: resolved 346, reused 225, downloaded 121, added 346, done
224.3
224.3 dependencies:
224.3 + @plasmicapp/host 2.0.18
224.3 + react 18.3.1
224.3 + react-dom 18.3.1
224.3
224.3 devDependencies:
224.3 + @types/node 24.12.2
224.3 + @types/react 18.3.25
224.3 + @types/react-dom 18.3.7
224.3 + source-map-loader 1.1.3
224.3 + ts-loader 9.5.7
224.3 + typescript 6.0.3
224.3 + webpack 5.102.0
224.3 + webpack-cli 5.1.4
224.3 + webpack-dev-server 4.15.2
224.3 + webpack-merge 5.10.0
224.3
224.4 Done in 6.1s using pnpm v11.8.0
225.9 $ webpack --config webpack.prod.config.js
227.3 [baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: npm i baseline-browser-mapping@latest -D
238.9 asset client.js 161 KiB [emitted] [minimized] (name: client) 2 related assets
238.9 runtime modules 1.8 KiB 4 modules
238.9 orphan modules 78.5 KiB [orphan] 3 modules
238.9 modules by path ./node_modules/.pnpm/ 143 KiB
238.9 modules by path ./node_modules/.pnpm/react@18.3.1/node_modules/react/ 8.55 KiB
238.9 modules by path ./node_modules/.pnpm/react@18.3.1/node_modules/react/.js 626 bytes 3 modules
238.9 modules by path ./node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/.js 7.94 KiB 3 modules
238.9 modules by path ./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/ 131 KiB
238.9 ./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react…(truncated) 619 bytes [built] [code generated]
238.9 ./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/reac…(truncated) 1.33 KiB [built] [code generated]
238.9 ./node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/re…(truncated) 129 KiB [built] [code generated]
238.9 modules by path ./node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/ 4.33 KiB
238.9 ./node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.js 198 bytes [built] [code generated]
238.9 ./node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.pro…(truncated) 4.14 KiB [built] [code generated]
238.9 ./src/index.tsx + 3 modules 79 KiB [built] [code generated]
238.9 prod (webpack 5.102.0) compiled successfully in 10872 ms
240.7 $ cd platform/react-web-bundle && pnpm install && pnpm build
242.3 ? Verifying lockfile against supply-chain policies (377 entries)…
242.4 ✓ Lockfile passes supply-chain policies (377 entries in 33ms)
242.4 Lockfile is up to date, resolution step is skipped
242.5 Progress: resolved 1, reused 0, downloaded 0, added 0
242.7 Packages: +376
242.7 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
243.5 Progress: resolved 376, reused 138, downloaded 0, added 0
244.5 Progress: resolved 376, reused 160, downloaded 52, added 14
245.5 Progress: resolved 376, reused 160, downloaded 102, added 18
246.5 Progress: resolved 376, reused 160, downloaded 146, added 22
247.5 Progress: resolved 376, reused 160, downloaded 214, added 374
248.5 Progress: resolved 376, reused 160, downloaded 215, added 375
261.4 [WARN] Tarball download average speed 0 KiB/s (size 7 KiB) is below 50 KiB/s: https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz (GET)
261.7 Progress: resolved 376, reused 160, downloaded 216, added 375
261.7 Progress: resolved 376, reused 160, downloaded 216, added 376, done
262.5
262.5 dependencies:
262.5 + @plasmicapp/data-sources-context 0.1.25
262.5 + @plasmicapp/react-web 1.0.34
262.5
262.5 devDependencies:
262.5 + @babel/core 7.29.0
262.5 + @babel/preset-react 7.28.5
262.5 + @rollup/plugin-babel 5.3.1
262.5 + @rollup/plugin-commonjs 14.0.0
262.5 + @rollup/plugin-node-resolve 8.4.0
262.5 + @rollup/plugin-replace 2.4.2
262.5 + @rollup/plugin-sucrase 3.1.1
262.5 + @rollup/plugin-typescript 5.0.2
262.5 + @types/react 16.14.69
262.5 + @types/react-dom 16.9.25
262.5 + rollup 2.79.1
262.5 + rollup-plugin-postcss 3.1.8
262.5 + rollup-plugin-string 3.0.0
262.5 + rollup-plugin-terser 6.1.0
262.5 + typescript 6.0.3
262.5
262.6 Done in 21.7s using pnpm v11.8.0
264.1 $ NODE_ENV=production rollup -c rollup.config.js
265.3
265.3 src/index.ts → build/client.js…
265.3 babelHelpers: ‘bundled’ option was used by default. It is recommended to configure this option explicitly, read more here: plugins/packages/babel at master · rollup/plugins · GitHub
267.4 (!) Error when using sourcemap for reporting an error: Can’t resolve original location of error.
267.4 node_modules/.pnpm/@plasmicapp+react-web@1.0.34_@types+react@16.14.69_react-dom@19.2.8_react@18.3.1__react@18.3.1/node_modules/@plasmicapp/react-web/dist/react-web.esm.js (1:0)
267.4 (!) Module level directives cause errors when bundled, ‘use client’ was ignored.
267.4 node_modules/.pnpm/@plasmicapp+react-web@1.0.34_@types+react@16.14.69_react-dom@19.2.8_react@18.3.1__react@18.3.1/node_modules/@plasmicapp/react-web/dist/react-web.esm.js (1:0)
267.4 1: ‘use client’;
267.4 ^
267.4 2:
267.4 3: import classNames$1 from ‘classnames’;
267.7 (!) Error when using sourcemap for reporting an error: Can’t resolve original location of error.
267.7 node_modules/.pnpm/@plasmicapp+data-sources-context@0.1.25_react@18.3.1/node_modules/@plasmicapp/data-sources-context/dist/index.esm.js (1:0)
267.7 (!) Module level directives cause errors when bundled, ‘use client’ was ignored.
267.7 node_modules/.pnpm/@plasmicapp+data-sources-context@0.1.25_react@18.3.1/node_modules/@plasmicapp/data-sources-context/dist/index.esm.js (1:0)
267.7 1: “use client”;
267.7 ^
267.7 2:
267.7 3: // src/index.tsx
282.1 (!) Plugin replace: @rollup/plugin-replace: ‘preventAssignment’ currently defaults to false. It is recommended to set this option to true, as the next major version will default this option to true.
282.1 created build/client.js in 16.7s
284.0 $ cd platform/live-frame && pnpm install && pnpm build
286.0 ? Verifying lockfile against supply-chain policies (265 entries)…
286.0 Lockfile is up to date, resolution step is skipped
286.4 Progress: resolved 1, reused 0, downloaded 0, added 0
286.5 Packages: +264
286.5 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
287.4 Progress: resolved 264, reused 25, downloaded 0, added 0
288.4 Progress: resolved 264, reused 125, downloaded 0, added 0
289.4 ✓ Lockfile passes supply-chain policies (265 entries in 3.4s)
289.4 Progress: resolved 264, reused 206, downloaded 14, added 4
290.2 Progress: resolved 264, reused 206, downloaded 58, added 264, done
290.7
290.7 dependencies:
290.7 + @plasmicapp/react-web 0.0.0 ← ../wab/node_modules/@plasmicapp/react-web
290.7
290.7 devDependencies:
290.7 + @rollup/plugin-commonjs 14.0.0
290.7 + @rollup/plugin-node-resolve 8.4.0
290.7 + @rollup/plugin-replace 2.4.2
290.7 + @rollup/plugin-sucrase 3.1.1
290.7 + @rollup/plugin-typescript 5.0.2
290.7 + @types/react 16.14.70
290.7 + @types/react-dom 16.9.25
290.7 + rollup 2.38.5
290.7 + rollup-plugin-postcss 3.1.8
290.7 + rollup-plugin-terser 6.1.0
290.7 + typescript 6.0.3
290.7
290.7 Done in 6.3s using pnpm v11.8.0
292.6 $ NODE_ENV=production rollup -c rollup.config.js
294.0
294.0 src/index.ts → build/client.js…
294.6 (!) Plugin replace: @rollup/plugin-replace: ‘preventAssignment’ currently defaults to false. It is recommended to set this option to true, as the next major version will default this option to true.
294.6 (!) Unresolved dependencies
294.6 Rollup
294.6 @plasmicapp/react-web/lib/plasmic.css (imported by src/index.ts)
294.6 created build/client.js in 600ms
296.7 $ cd platform && pnpm install && pnpm --filter “loader-bundle-env…” build
298.7 Scope: all 83 workspace projects
298.7 Already up to date
298.7 Done in 1.6s using pnpm v11.8.0
301.1 No projects matched the filters in “/plasmic”
303.1 $ cd platform && pnpm install && pnpm --filter “@plasmicapp/loader-html-hydrate” build && cp loader-html-hydrate/build/* wab/public/static/js/
305.6 Scope: all 83 workspace projects
305.7 Already up to date
305.7 Done in 2.3s using pnpm v11.8.0
308.2 No projects matched the filters in “/plasmic”
308.2 cp: can’t stat ‘loader-html-hydrate/build/*’: No such file or directory
308.3 [ELIFECYCLE] Command failed with exit code 1.
308.4 [ELIFECYCLE] Command failed with exit code 1.
[+] up 0/1
⠙ Image plasmic-plasmic-wab Building 335.3s
Dockerfile.dev.aio:27
26 | # Secrets setup and build tools
27 | >>> RUN mkdir -p /tmp/.plasmic && \
28 | >>> cp platform/wab/tools/docker-dev/secrets.json /tmp/.plasmic/secrets.json && \
29 | >>> pnpm setup && \
30 | >>> pnpm setup:canvas-packages
31 |
failed to solve: process “/bin/sh -c mkdir -p /tmp/.plasmic && cp platform/wab/tools/docker-dev/secrets.json /tmp/.plasmic/secrets.json && pnpm setup && pnpm setup:canvas-packages” did not complete successfully: exit code: 1


