Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot call a class as a function #14

Closed
oste opened this issue Nov 10, 2021 · 4 comments
Closed

TypeError: Cannot call a class as a function #14

oste opened this issue Nov 10, 2021 · 4 comments

Comments

@oste
Copy link

oste commented Nov 10, 2021

I am finding that deleting the yarn.lock file and attempting to reinstall can produce this error.

I am using yarn 1.22.15

Screen Shot 2021-11-09 at 9 45 12 PM

.
@nandorojo
Copy link
Collaborator

nandorojo commented Nov 10, 2021

You shouldn’t be deleting your lock file, why are you doing that?

@oste
Copy link
Author

oste commented Nov 10, 2021

Yeah it’s probably not ideal to delete the lock file. Sometimes I do this to rule out other issues since it should provide e fresh install.

@nandorojo
Copy link
Collaborator

Yeah you shouldn’t remove it, that can mess up all the dependencies.

@marklawlor
Copy link

@oste @nandorojo This issue is caused in NextJS 12.0.3. Locking to 12.0.2 or 12.0.4-canary.4 will fix the issue

Issue causes by internal NextJS paths conflicting with the babel .web.ts path loading vercel/next.js#31116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants