You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to run a module that either depends directly or indirectly on a sys API call the Netlify Dev server crashes. The deno runtime recommends that --allow-sys be passed but this seems to be something outside of user-land.
◈ Netlify Dev ◈
◈ Ignored general context env var: LANG (defined in process)
◈ No app server detected. Using simple static server
◈ Running static server from "netlify-dev-os/dist"
◈ Setting up local development server
Cleaned up .netlify/functions-internal.
◈ Static server listening to 3999
┌─────────────────────────────────────────────────┐
│ │
│ ◈ Server now ready on http://localhost:8888 │
│ │
└─────────────────────────────────────────────────┘
PermissionDenied: Requires sys access to "cpus", run again with the --allow-sys flag
at Object.cpus (node:os:27:10)
at Object.<anonymous> (file:///opt/homebrew/lib/node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/.deno/[email protected]/node_modules/fast-glob/out/settings.js:10:31)
at Object.<anonymous> (file:///opt/homebrew/lib/node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/.deno/[email protected]/node_modules/fast-glob/out/settings.js:61:4)
at Module._compile (node:module:659:34)
at Object.Module._extensions..js (node:module:673:10)
at Module.load (node:module:597:32)
at Function.Module._load (node:module:484:12)
at Module.require (node:module:609:19)
at require (node:module:715:16)
at Object.<anonymous> (file:///opt/homebrew/lib/node_modules/netlify-cli/node_modules/@netlify/edge-bundler/node_modules/.deno/[email protected]/node_modules/fast-glob/out/index.js:6:20) {
name: "PermissionDenied"
}
The text was updated successfully, but these errors were encountered:
Looks like this is an issue with the edge bundler @ https://github.com/netlify/build/, I'll check for or open a seperate issue over there and backreference to this one. Thanks!
Describe the bug
When attempting to run a module that either depends directly or indirectly on a
sys
API call the Netlify Dev server crashes. The deno runtime recommends that--allow-sys
be passed but this seems to be something outside of user-land.Possibly related: denoland/deno#22221
Steps to reproduce
npm:fast-glob
or any other module that depends either directly or indirectly on thenode:os
module in an edge-function.Configuration
n/a
Environment
System info output:
Additionally providing the output of
netlify dev
The text was updated successfully, but these errors were encountered: