#Overnight my local development stopped working and throws errors, but vercel deployments work

4 messages · Page 1 of 1 (latest)

primal mulch
#

Yesterday, my local development environment was working fine, and today, it has stopped working with the following error:

 ○ Compiling /_error ...
[next]  ✓ Compiled /dashboard in 5.2s (3628 modules)
[next] Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
[next] 
[next] Check your code at _app.tsx:137.

I tried reverting to an earlier commit, still same issue.
I tried deleting node_modules, .next build folder, reinstalling everything with a fresh yarn.lock ( kept my original as a backup )
I am able to make changes like add a console log and push to remote and Vercel is able to build and deploy my app without issue.

Something changed on my computer overnight, and now this is happening. I have no idea what could have changed, other than the fact that my computer did restart due to a problem early this morning.

The next step is to delete the repository from local and clone it again.

Has anyone seen this sort of issue before?

silk ferryBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

primal mulch
#

Same issue after deleting the repo from local and cloning again.

#
- error Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.