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)
- Database Error Failed to fetch invoices in Ch 11 HOT 3
- Chapter 5 Adding 'use client' to navlinks.tsx causes webpack loader issue HOT 2
- Chapter 6, first deployment - 404 not found HOT 3
- Chapter 2 - Fix typo in second codeblock HOT 1
- Chapter 13: Unused import (updateInvoice) HOT 1
- error at : chapter 11 after 2 :update URL with search parameters HOT 3
- In Chapter 12 Step 6, `redirect` call from Server Action points to the wrong path HOT 1
- Chapter 8: Mismatch between sample code and documentation
- chapter 15 : how to set AUTH_SECRET and url on vercel.app HOT 3
- Babel added too early
- Update TypeScript Target to ES2017 for Top-Level Await Support
- Progress meter incorrect if not opening at first chapter.
- Chapter 12: Object.fromEntries(formData.entries()) results in differing error messages
- Error when adding 'use client' to nav-links.tsx HOT 1
- Couldn't create new project from learn page HOT 1
- Problems with images paths in Chapter 3.
- Could not locate the repository for "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example" HOT 3
- import { lusitana } from '@/app/ui/fonts'; HOT 2
- Some file names are different HOT 1
- Improving accessibility chapter changes validated fields to safeParse() but doesn't mention parsing them out
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.