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

Next.js + Turbopack: HMR Error #1585

Open
FleetAdmiralJakob opened this issue Dec 7, 2024 · 2 comments
Open

Next.js + Turbopack: HMR Error #1585

FleetAdmiralJakob opened this issue Dec 7, 2024 · 2 comments
Labels
SDK Support General SDK issues rather than being related to a feature team

Comments

@FleetAdmiralJakob
Copy link

FleetAdmiralJakob commented Dec 7, 2024

Everytime I open my Next.js app in dev with Turbopack I get this error:

Error: Module [project]/node_modules/.pnpm/[email protected]/node_modules/posthog-js/dist/module.js [app-client] (ecmascript) was instantiated because it was required from module [project]/src/app/_analytics/provider.tsx [app-client] (ecmascript), but the module factory is not available. It might have been deleted in an HMR update.

I can work around the error by pressing Ctrl + Shift + R but this error is annoying

Screenshot

image

@rafaeelaudibert rafaeelaudibert added the SDK Support General SDK issues rather than being related to a feature team label Dec 11, 2024
@rafaeelaudibert
Copy link
Member

rafaeelaudibert commented Dec 11, 2024

I haven't investigated this deeply, but you might be able to solve this by following some of the steps suggested in here: vercel/next.js#70424

@FleetAdmiralJakob
Copy link
Author

FleetAdmiralJakob commented Dec 12, 2024

Hi, first thank you so much for looking into my issue. Seems like the suggested workarounds on this issue are to disable a part of the functionality completely on Turbopack. Im not sure if this is a sufficient fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SDK Support General SDK issues rather than being related to a feature team
Projects
None yet
Development

No branches or pull requests

2 participants