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

Failed to Build bun run build #298

Open
balqaasem opened this issue Feb 27, 2025 · 1 comment
Open

Failed to Build bun run build #298

balqaasem opened this issue Feb 27, 2025 · 1 comment

Comments

@balqaasem
Copy link

Failed to build. This is the error report I get in the terminal (I am using bun "packageManager": "[email protected]",):

@opencanvas/web:build: Failed to compile.
@opencanvas/web:build: 
@opencanvas/web:build: ../../node_modules/@blocknote/core/dist/blocknote.js
@opencanvas/web:build: Attempted import error: '__serializeForClipboard' is not exported from 'prosemirror-view' (imported as 'lt').
@opencanvas/web:build: 
@opencanvas/web:build: Import trace for requested module:
@opencanvas/web:build: ../../node_modules/@blocknote/core/dist/blocknote.js
@opencanvas/web:build: ../../node_modules/@blocknote/react/dist/blocknote-react.js
@opencanvas/web:build: ./src/components/artifacts/TextRenderer.tsx
@opencanvas/web:build: ./src/components/artifacts/ArtifactRenderer.tsx
@opencanvas/web:build: ./src/components/canvas/canvas.tsx
@opencanvas/web:build: ./src/components/canvas/index.ts
@opencanvas/web:build: ./src/app/page.tsx
@opencanvas/web:build: 
@opencanvas/web:build: ../../node_modules/@blocknote/core/dist/blocknote.js
@opencanvas/web:build: Attempted import error: '__serializeForClipboard' is not exported from 'prosemirror-view' (imported as 'lt').
@opencanvas/web:build: 
@opencanvas/web:build: Import trace for requested module:
@opencanvas/web:build: ../../node_modules/@blocknote/core/dist/blocknote.js
@opencanvas/web:build: ../../node_modules/@blocknote/react/dist/blocknote-react.js
@opencanvas/web:build: ./src/components/artifacts/TextRenderer.tsx
@opencanvas/web:build: ./src/components/artifacts/ArtifactRenderer.tsx
@opencanvas/web:build: ./src/components/canvas/canvas.tsx
@opencanvas/web:build: ./src/components/canvas/index.ts
@opencanvas/web:build: ./src/app/page.tsx
@opencanvas/web:build: 
@opencanvas/web:build: 
@opencanvas/web:build: > Build failed because of webpack errors
@opencanvas/web:build: error: script "build" exited with code 1
@opencanvas/web:build: ERROR: command finished with error: command (C:\Users\User\Documents\GitHub\open-canvas\apps\web) C:\Users\User\.bun\bin\bun.exe run build exited (1)
@opencanvas/web#build: command (C:\Users\User\Documents\GitHub\open-canvas\apps\web) C:\Users\User\.bun\bin\bun.exe run build exited (1)

 Tasks:    3 successful, 4 total
Cached:    0 cached, 4 total
  Time:    2m21.929s 
Failed:    @opencanvas/web#build

 ERROR  run failed: command  exited (1)
error: script "build" exited with code 1
@robertoshimizu
Copy link

Same here.
`yarn run v1.22.22
$ turbo build
turbo 2.4.4

• Packages in scope: @opencanvas/agents, @opencanvas/evals, @opencanvas/shared, @opencanvas/web
• Running build in 4 packages
• Remote caching disabled
@opencanvas/shared:build: cache miss, executing 13d3019c048e9325
@opencanvas/shared:build:
yarn run v1.22.22
$ yarn clean && tsc
$ rm -rf ./dist .turbo || true
✨ Done in 0.82s.
@opencanvas/web:build: cache miss, executing 30782dc5a4ed88ec
@opencanvas/agents:build: cache miss, executing 0e4560f5c11a77a3
@opencanvas/web:build:
@opencanvas/agents:build:
yarn run v1.22.22
yarn run v1.22.22
$ yarn clean && tsc
$ next build
$ rm -rf ./dist .turbo || true
@opencanvas/web:build: ▲ Next.js 14.2.10
@opencanvas/web:build:
@opencanvas/web:build: Creating an optimized production build ...
✨ Done in 1.63s.
@opencanvas/evals:build: cache miss, executing f5d9357a24f3a235
@opencanvas/evals:build:
yarn run v1.22.22
$ yarn clean && tsc
$ rm -rf ./dist .turbo || true
✨ Done in 1.02s.
@opencanvas/web:build: Failed to compile.
@opencanvas/web:build:
@opencanvas/web:build: ../../node_modules/@blocknote/core/dist/blocknote.js
@opencanvas/web:build: Attempted import error: '__serializeForClipboard' is not exported from 'prosemirror-view' (imported as 'lt').
@opencanvas/web:build:
@opencanvas/web:build: Import trace for requested module:
@opencanvas/web:build: ../../node_modules/@blocknote/core/dist/blocknote.js
@opencanvas/web:build: ../../node_modules/@blocknote/react/dist/blocknote-react.js
@opencanvas/web:build: ./src/components/artifacts/TextRenderer.tsx
@opencanvas/web:build: ./src/components/artifacts/ArtifactRenderer.tsx
@opencanvas/web:build: ./src/components/canvas/canvas.tsx
@opencanvas/web:build: ./src/components/canvas/index.ts
@opencanvas/web:build: ./src/app/page.tsx
@opencanvas/web:build:
@opencanvas/web:build: ../../node_modules/@blocknote/core/dist/blocknote.js
@opencanvas/web:build: Attempted import error: '__serializeForClipboard' is not exported from 'prosemirror-view' (imported as 'lt').
@opencanvas/web:build:
@opencanvas/web:build: Import trace for requested module:
@opencanvas/web:build: ../../node_modules/@blocknote/core/dist/blocknote.js
@opencanvas/web:build: ../../node_modules/@blocknote/react/dist/blocknote-react.js
@opencanvas/web:build: ./src/components/artifacts/TextRenderer.tsx
@opencanvas/web:build: ./src/components/artifacts/ArtifactRenderer.tsx
@opencanvas/web:build: ./src/components/canvas/canvas.tsx
@opencanvas/web:build: ./src/components/canvas/index.ts
@opencanvas/web:build: ./src/app/page.tsx
@opencanvas/web:build:
@opencanvas/web:build:
@opencanvas/web:build: > Build failed because of webpack errors
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@opencanvas/web:build: ERROR: command finished with error: command (/Users/robertoshimizu/GitRepo/open-canvas/apps/web) /var/folders/7h/9015p5910t3f78rzljy3l21c0000gn/T/yarn--1740727052064-0.5739135902767591/yarn run build exited (1)
@opencanvas/web#build: command (/Users/robertoshimizu/GitRepo/open-canvas/apps/web) /var/folders/7h/9015p5910t3f78rzljy3l21c0000gn/T/yarn--1740727052064-0.5739135902767591/yarn run build exited (1)

Tasks: 3 successful, 4 total
Cached: 0 cached, 4 total
Time: 15.795s
Failed: @opencanvas/web#build

ERROR run failed: command exited (1)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

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