axeldelafosse / expo-next-monorepo-example

Create a universal React app using Expo and Next.js in a monorepo

Home Page:https://expo-next-monorepo-example.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot call a class as a function

oste opened this issue · comments

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

.

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

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.

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

@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