Also having this same issue on local starting yesterday. Fully updated.
@fool @SamO - any updates on this? It seems to error out right away in /.netlify/edge-functions/next-dev/ when trying to load this file: import { NextRequest } from ‘…/vendor/esm.sh/v91/next@12.2.5/deno/dist/server/web/spec-extension/request.js’. There is no vendor
directory in edge-functions
. Was that folder supposed to be created and isn’t or maybe the path is wrong?
Having the exact same issue here. Installing 4.40.1 as a dev dependency works as a temporary bypass:
npm install -D @netlify/plugin-nextjs@4.40.1
4.41.0 appears to be broken.
hello Netlify team, can you please get an update on the status of this issue at your earliest convenience?
I have attempted installing the plugin manually in my package.json with no luck, using several versions.
I have updated the Netlify CLI to the latest version as well.
node v18.16.0
m1 mac
please let me know if there’s any more information I can provide to help
cheers
Does this affect all the edge functions? I’ve just tried to install the CSP integration but i’m receiving the following error. Wondered if it was related?
9:42:42 AM: Failed to compile.
9:42:42 AM:
9:42:42 AM: ./netlify/edge-functions/__csp-nonce.ts:4:1
9:42:42 AM: Type error: Unused "@ts-expect-error" directive.
9:42:42 AM: 2 | // @ts-expect-error
9:42:42 AM: 3 | import type { Config, Context } from "netlify:edge";
9:42:42 AM: > 4 | // @ts-expect-error
9:42:42 AM: | ^
9:42:42 AM: 5 | import { randomBytes } from "node:crypto";
9:42:42 AM: 6 | // @ts-expect-error
Having the same issue here @fool any update on this please.
Adding "@netlify/plugin-nextjs": "^4.40.1",
to devDependencies allowed it to start working for me again. I actually didn’t need to update my .toml
.
As noted by some, 4.41.1 has the fix for this: Release plugin-nextjs: v4.41.1 · netlify/next-runtime (github.com)
I dont have @netlify/plugin-nextjs installed, but am still getting this error. I have tried to install the plugin to no avail.
I got it working, if you install @netlify/plugin-nextjs make sure you delete the .netlify folders, and run netlify dev again.
thanks for writing back in and sharing your solution!