TypeError: Cannot call a class as a function
oste opened this issue · comments
Mike Osterhout commented
Fernando Rojo commented
You shouldn’t be deleting your lock file, why are you doing that?
Mike Osterhout commented
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.
Fernando Rojo commented
Yeah you shouldn’t remove it, that can mess up all the dependencies.
Mark Lawlor commented
@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