Skip to content

leanovate/nextjs-hmr-bug

Repository files navigation

nextjs-hmr-bug

Project to demonstrate an error when clicking on a link in next.js in dev mode.

How to reproduce

Notice that after reloading the linked page once, the error is gone.

Other branches

There are three other branches:

  • fix-by-removing-export demonstrates that the bug can be avoided by removing an interface export in src/types.ts
  • fix-by-removing-sass-import demonstrates that the bug can be avoided by removing the import of the about.scss file
  • break-by-removing-css-import demonstrates that removing the import of index.css will break the link. Clicking will have no effect. Maybe it is related to the hmr bug.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published