Comments (7)
Is your code identical to the working examples here?
from next-learn.
I had added more modules but recreating package-lock.json and node_modules fixed my problem and I was able to deploy to Vercel
from next-learn.
i have a problem like this too
error - Error [TypeError]: Class extends value undefined is not a constructor or null
at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/file.js (evalmachine.:5724:19)
at __require (evalmachine.:14:50)
at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/formdata.js (evalmachine.:5881:49)
at __require (evalmachine.:14:50)
at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/body.js (evalmachine.:6094:35)
at __require (evalmachine.:14:50)
at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/response.js (evalmachine.:6510:49)
at __require (evalmachine.:14:50)
at (evalmachine.:11635:30)
at requireFn (file://C:\Users\Bayram\Desktop\nextapi\node_modules\next\dist\compiled\edge-runtime\index.js:1:7079) {
middleware: true
from next-learn.
i have a problem like this too
error - Error [TypeError]: Class extends value undefined is not a constructor or null at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/file.js (evalmachine.:5724:19) at __require (evalmachine.:14:50) at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/formdata.js (evalmachine.:5881:49) at __require (evalmachine.:14:50) at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/body.js (evalmachine.:6094:35) at __require (evalmachine.:14:50) at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/response.js (evalmachine.:6510:49) at __require (evalmachine.:14:50) at (evalmachine.:11635:30) at requireFn (file://C:\Users\Bayram\Desktop\nextapi\node_modules\next\dist\compiled\edge-runtime\index.js:1:7079) { middleware: true
same, happening after upgraded to next 13
from next-learn.
i have a problem like this too
error - Error [TypeError]: Class extends value undefined is not a constructor or null at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/file.js (evalmachine.:5724:19) at __require (evalmachine.:14:50) at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/formdata.js (evalmachine.:5881:49) at __require (evalmachine.:14:50) at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/body.js (evalmachine.:6094:35) at __require (evalmachine.:14:50) at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/response.js (evalmachine.:6510:49) at __require (evalmachine.:14:50) at (evalmachine.:11635:30) at requireFn (file://C:\Users\Bayram\Desktop\nextapi\node_modules\next\dist\compiled\edge-runtime\index.js:1:7079) { middleware: true
Upgrading node fixes this. Check: vercel/next.js#42729
from next-learn.
Updating Node version didn't work for me, I had to remove next 13 middleware.ts
under src
folder, and created custom server.js for handling middlewares. The issue then resolved for me .
from next-learn.
@maniatoffl It seems you need to use node v16.4 at least in order to use a middleware.ts file as I did.
from next-learn.
Related Issues (20)
- chapter 15: missing 'use server' directive in example
- Chapter 15 - env-url-basepath-redundant HOT 5
- 'duplicated mapping key' error occurred, during pagenation
- Invoices problems
- Page changed from static to dynamic at runtime /dashboard, reason: unstable_noStore()
- Generic errors doesn't work along with 404 errors HOT 1
- /
- Chapitre 6: error seeding, when i run npm run seed HOT 3
- Typo in chapter 12 (Updating an invoice) - edit invoice url
- Response.redirect navigating to the url but not updating it in the address bar HOT 2
- Chapter 11; 4. Updating the table wrong type
- tree/master/dynamic-routes-starter this url is null
- .env.sample file & /scripts/seed.js are missing in my NextJS app HOT 2
- Docs: Minor syntax error in the streaming doc HOT 1
- Chapter 6: Create Postgre SQL database error
- Chapter 6: after running seeding script I got console logs that my database had been seeded, but I don't have any data HOT 4
- chapter 6 Cannot destructure property 'invoices' of 'require(...).default' as it is undefined HOT 1
- Unknown at rule @tailwindcss(unknownAtRules) HOT 1
- Bcrypt doesn't work , replace it with bcryptjs HOT 1
- 'RevenueChart' cannot be used as a JSX component.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-learn.