Skip to content

Dev error persists after being fixed #76872

@Chukwu3meka

Description

@Chukwu3meka

Link to the code that reproduces this issue

https://github.com/Chukwu3meka/waverd-client

To Reproduce

  1. npm run dev
  2. Edit any of the import statement that does not trigger full page reload, in this case our middleware.ts which can be found at the root of the project.
  3. Update import AccountsService from "@services/accounts.service"; to import AccountsService from "services/accounts.service"; you get an error
  4. Image
  5. Now reverse that line change, and you can see that the error is no longer there but still visible at dev indicator which can be located at the footer.
  6. Image

Current vs. Expected behavior

Expected behaviour should be when error is fixed, it should also be cleared at the dev indicator and not only when a full page reload is triggered

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 16082
  Available CPU cores: 12
Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 10.4.1
Relevant Packages:
  next: 15.2.1 // Latest available version is detected (15.2.1).
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: N/A
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Middleware, Turbopack, Runtime

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

I started noticing this after upgrading to next 15.2.1 from 15.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    MiddlewareRelated to Next.js Middleware.TurbopackRelated to Turbopack with Next.js.lockedplease simplify reproductionPlease simplify the reproduction.staleThe issue has not seen recent activity.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions