-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
This is some horrible bundling compat issue:
✘ [ERROR] Build failed with 4 errors:
✘ [ERROR] Could not resolve "path"
node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/lib/main.js:2:21:
2 │ const path = require('path')
╵ ~~~~~~
The package "path" wasn't found on the file system but is built into node.
- Add the "nodejs_compat" compatibility flag to your project.
✘ [ERROR] Could not resolve "os"
node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/lib/main.js:3:19:
3 │ const os = require('os')
╵ ~~~~
The package "os" wasn't found on the file system but is built into node.
- Add the "nodejs_compat" compatibility flag to your project.
✘ [ERROR] Could not resolve "crypto"
node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/lib/main.js:4:23:
4 │ const crypto = require('crypto')
╵ ~~~~~~~~
The package "crypto" wasn't found on the file system but is built into node.
- Add the "nodejs_compat" compatibility flag to your project.
✘ [ERROR] Could not resolve "fs/promises"
node_modules/.pnpm/sops-age@3.3.0/node_modules/sops-age/dist/index.js:1:411:
1 │ ...node)return (await import('fs/promises')).readFile(t,"utf-8");th...
╵ ~~~~~~~~~~~~~
The package "fs/promises" wasn't found on the file system but is built into node.
- Add the "nodejs_compat" compatibility flag to your project.
made a sample repo:
https://github.com/tarasglek/sops-age-cloudflare-bug
Metadata
Metadata
Assignees
Labels
No labels