TypeError: Class extends value # is not a constructor or null - JavaScript - The freeCodeCamp Forum

Por um escritor misterioso

Descrição

Hi there, can anyone help me to figure out what´s the issue with this error? I tried to upload a Node.js and Next.js app on Heroku, but it failed because I did not add "type": "module" inside the package.json After I added "type": "module" to package.json I needed to change the file extension from next.config.js (.js) to next.config.cjs (.cjs (commonJS)). Then I tried to run the app to see if everything works and I got the above error. It seems that I messed up something with the nod
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
Angular Templates — From Start to Source
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
Class constructor cannot be invoked without 'new' in JS/TS
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
Explore JavaScript
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
Understanding this in JavaScript
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
AJS 5 => AJS 6 : ERROR TypeError: Cannot create property '_gsTweenID' on string - GSAP - GreenSock
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
Angular Templates — From Start to Source
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
Understanding this in JavaScript
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
How to Build a Full Stack NFT Marketplace - V2 (2022) - DEV Community
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum
Strapi - Build a Blog Using Strapi and Next.js
TypeError: Class extends value #<Object> is not a constructor or null -  JavaScript - The freeCodeCamp Forum