Netlify error
I copied the docs exactly from https://hono.dev/docs/getting-started/netlify to clone the netlify template. As soon as I run
netlify dev
, I get this error.
kiran@KiranMac my-app % netlify dev
◈ Netlify Dev ◈
◈ Injecting environment variable values for all scopes
◈ Ignored general context env var: LANG (defined in process)
◈ No app server detected. Using simple static server
◈ Unable to determine public folder to serve files from. Using current working directory
◈ Setup a netlify.toml file with a [dev] section to specify your dev server settings.
◈ See docs at: https://docs.netlify.com/cli/local-development/#project-detection
◈ Running static server from "my-app"
◈ Setting up local development server
Cleaned up .netlify/functions-internal.
◈ Static server listening to 3999
┌─────────────────────────────────────────────────┐
│ │
│ ◈ Server now ready on http://localhost:8888 │
│ │
└─────────────────────────────────────────────────┘
◈ Failed to run Edge Function index:
TypeError: Import 'https://registry-staging.deno.com/@hono/hono/meta.json' failed: error sending request for url (https://registry-staging.deno.com/@hono/hono/meta.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
at file:///Users/kiran/Downloads/tests/my-app/netlify/edge-functions/index.ts:1:22
at async file:///Users/kiran/Downloads/tests/my-app/.netlify/edge-functions-serve/dev.js:7:35 {
code: "ERR_MODULE_NOT_FOUND"
}
TypeError: Import 'https://registry-staging.deno.com/@hono/hono/meta.json' failed: error sending request for url (https://registry-staging.deno.com/@hono/hono/meta.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
at file:///Users/kiran/Downloads/tests/my-app/netlify/edge-functions/index.ts:1:22
at async file:///Users/kiran/.nvm/versions/node/v20.17.0/lib/node_modules/netlify-cli/node_modules/@netlify/edge-bundler/deno/config.ts:12:10 {
code: "ERR_MODULE_NOT_FOUND"
}
kiran@KiranMac my-app % netlify dev
◈ Netlify Dev ◈
◈ Injecting environment variable values for all scopes
◈ Ignored general context env var: LANG (defined in process)
◈ No app server detected. Using simple static server
◈ Unable to determine public folder to serve files from. Using current working directory
◈ Setup a netlify.toml file with a [dev] section to specify your dev server settings.
◈ See docs at: https://docs.netlify.com/cli/local-development/#project-detection
◈ Running static server from "my-app"
◈ Setting up local development server
Cleaned up .netlify/functions-internal.
◈ Static server listening to 3999
┌─────────────────────────────────────────────────┐
│ │
│ ◈ Server now ready on http://localhost:8888 │
│ │
└─────────────────────────────────────────────────┘
◈ Failed to run Edge Function index:
TypeError: Import 'https://registry-staging.deno.com/@hono/hono/meta.json' failed: error sending request for url (https://registry-staging.deno.com/@hono/hono/meta.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
at file:///Users/kiran/Downloads/tests/my-app/netlify/edge-functions/index.ts:1:22
at async file:///Users/kiran/Downloads/tests/my-app/.netlify/edge-functions-serve/dev.js:7:35 {
code: "ERR_MODULE_NOT_FOUND"
}
TypeError: Import 'https://registry-staging.deno.com/@hono/hono/meta.json' failed: error sending request for url (https://registry-staging.deno.com/@hono/hono/meta.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
at file:///Users/kiran/Downloads/tests/my-app/netlify/edge-functions/index.ts:1:22
at async file:///Users/kiran/.nvm/versions/node/v20.17.0/lib/node_modules/netlify-cli/node_modules/@netlify/edge-bundler/deno/config.ts:12:10 {
code: "ERR_MODULE_NOT_FOUND"
}
0 Replies