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
This issue has been automatically marked as stale because it has not had activity in 1 year. It will be closed in 14 days if no further activity occurs. Thanks!
Describe the bug
I'm using NetlifyAPI exactly as described on a Netlify Function (testing locally with Netlify Dev):
#index.mjs
This is only a completely fresh project (no config etc).
Here's the error I got:
Steps to reproduce
I can't share my repo (API key in there), but it's only 1 file.
Configuration
No response
Deploy logs
Local only.
new NodeError (node:internal/errors:393:5) createRequire (node:internal/modules/cjs/loader:1278:11) Object. (***/netlify/functions/sites/node_modules/netlify/lib/open_api.js:4:17) Module._compile (node:internal/modules/cjs/loader:1159:14) Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10) Module.load (node:internal/modules/cjs/loader:1037:32) Function.Module._load (node:internal/modules/cjs/loader:878:12) Module.require (node:internal/modules/cjs/loader:1061:19) require (node:internal/modules/cjs/helpers:103:18) Object. (/***/.netlify/functions-serve/sites/sites.js:1:18)
The text was updated successfully, but these errors were encountered: