-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Crash during build with Sanity and Cloudflare adapter #4951
Comments
nope, it doesn't help. I don't use react at this example. With Netlify build fine. |
I am not sure if I have provided a solution🤣. The PR#4888 is a little slow. They seem to be paused(They haven't discussed it for 3 days). Maybe we can create a new PR to deal with it? |
3 days is not a very long time in an open source project. It's only tuesday after all, I'm not in the Astro PRs on the weekends most of the time. I would expect that that PR will eventually be merged in. |
Fixed by #4888 |
What version of
astro
are you using?1.4.2
Are you using an SSR adapter? If so, which one?
Cloudflare
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
ray@MacBook-Air astro % yarn build
yarn run v1.22.19
$ astro build
15:25:39 [build] output target: server
15:25:39 [build] deploy adapter: @astrojs/cloudflare
15:25:39 [build] Collecting build info...
15:25:39 [build] Completed in 9ms.
15:25:39 [build] Building server entrypoints...
15:25:40 [build] Completed in 532ms.
building client
Completed in 93ms.
finalizing server assets
15:25:40 [build] Rearranging server assets...
✘ [ERROR] Could not resolve "url"
The package "url" 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 "https"
The package "https" 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 "http"
The package "http" 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"
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 "querystring"
The package "querystring" 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 "url"
The package "url" 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 "http"
The package "http" 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 "https"
The package "https" 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 "tty"
The package "tty" 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"
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 "fs"
The package "fs" 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"
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 "url"
The package "url" 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 "net"
The package "net" 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"
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] Could not resolve "stream"
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] Could not resolve "url"
The package "url" 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 "url"
The package "url" 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 "zlib"
The package "zlib" 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 "http"
The package "http" 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 "https"
The package "https" 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"
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] Could not resolve "assert"
The package "assert" 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 "net"
The package "net" 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 "tty"
The package "tty" 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"
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 "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 "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 "os"
The package "os" 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 "tty"
The package "tty" 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"
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 "tls"
The package "tls" 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 "http"
The package "http" 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 "https"
The package "https" 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 "assert"
The package "assert" 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"
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 "stream"
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 Build failed with 37 errors:
node_modules/debug/src/node.js:5:20: ERROR: Could not resolve "tty"
node_modules/debug/src/node.js:6:21: ERROR: Could not resolve "util"
node_modules/decompress-response/index.js:2:41: ERROR: Could not resolve "stream"
node_modules/decompress-response/index.js:3:21: ERROR: Could not resolve "zlib"
node_modules/eventsource/lib/eventsource.js:1:20: ERROR: Could not resolve "url"
...
File:
node_modules/debug/src/node.js
Code:
> 5 | const tty = require('tty');
| ^
6 | const util = require('util');
8 | /**
Stacktrace:
Error: Build failed with 37 errors:
node_modules/debug/src/node.js:5:20: ERROR: Could not resolve "tty"
node_modules/debug/src/node.js:6:21: ERROR: Could not resolve "util"
node_modules/decompress-response/index.js:2:41: ERROR: Could not resolve "stream"
node_modules/decompress-response/index.js:3:21: ERROR: Could not resolve "zlib"
node_modules/eventsource/lib/eventsource.js:1:20: ERROR: Could not resolve "url"
...
at failureErrorWithLog (/Users/ray/Code/intelmed-ts/astro/node_modules/esbuild/lib/main.js:1624:15)
at /Users/ray/Code/intelmed-ts/astro/node_modules/esbuild/lib/main.js:1266:28
at runOnEndCallbacks (/Users/ray/Code/intelmed-ts/astro/node_modules/esbuild/lib/main.js:1179:65)
at buildResponseToResult (/Users/ray/Code/intelmed-ts/astro/node_modules/esbuild/lib/main.js:1264:7)
at /Users/ray/Code/intelmed-ts/astro/node_modules/esbuild/lib/main.js:1377:14
at /Users/ray/Code/intelmed-ts/astro/node_modules/esbuild/lib/main.js:678:9
at handleIncomingPacket (/Users/ray/Code/intelmed-ts/astro/node_modules/esbuild/lib/main.js:775:9)
at Socket.readFromStdout (/Users/ray/Code/intelmed-ts/astro/node_modules/esbuild/lib/main.js:644:7)
at Socket.emit (node:events:527:28)
at Socket.emit (node:domain:475:12)
error Command failed with exit code 1.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-cdyygj?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: