forked from stackblitz/bolt.new
-
Couldn't load subscription status.
- Fork 10.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
✘ [ERROR] Build failed with 5 errors:
✘ [ERROR] Could not resolve "child_process"
../build/server/index.js:25:31:
25 │ import { execSync, exec } from 'child_process';
╵ ~~~~~~~~~~~~~~~
The package "child_process" wasn't found on the file system but is built into node. Are you
trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this
error.
✘ [ERROR] Could not resolve "crypto"
../build/server/index.js:29:19:
29 │ import crypto from 'crypto';
╵ ~~~~~~~~
The package "crypto" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "util"
../build/server/index.js:31:26:
31 │ import { promisify } from 'util';
╵ ~~~~~~
The package "util" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "crypto"
../node_modules/.pnpm/[email protected]/node_modules/cookie-signature/index.js:5:21:
5 │ var crypto = require('crypto');
╵ ~~~~~~~~
The package "crypto" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "stream"
../node_modules/.pnpm/[email protected]/node_modules/stream-slice/index.js:3:24:
3 │ var Transform = require('stream').Transform;
╵ ~~~~~~~~
The package "stream" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Failed to build Functions at ./functions.
🪵 Logs were written to "/home/bolt/.config/.wrangler/logs/wrangler-2025-03-02_01-55-15_331.log"
ELIFECYCLE Command failed with exit code 1.
Link to the Bolt URL that caused the error
https://github.com/stackblitz-labs/bolt.diy/releases/tag/v0.0.7
Steps to reproduce
pnpm run build && pnpm run start
Expected behavior
Complete build
Screen Recording / Screenshot
No response
Platform
- OS: [Linux - Ubuntu 24.04]
- Browser: [Chrome]
- Version: [0.0.7]
Provider Used
No response
Model Used
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working