Skip to content

Node 26: DEP0205 deprecation warning from module.register during dev startup #1617

@Archetipo95

Description

@Archetipo95

Hi team,

I’m seeing a Node 26 deprecation warning during dev startup.

Warning

(node:81700) [DEP0205] DeprecationWarning: module.register() is deprecated. Use module.registerHooks() instead.
(Use node --trace-deprecation ... to show where the warning was created)

Environment

  • Node: 26.0.0
  • vp: 0.1.11
  • vite-plus: 0.1.21

Reproduction

  1. Use Node 26
  2. Run vp run dev
  3. Check startup logs

Suspected source

@voidzero-dev/vite-plus-core module runner fallback in createImportMetaResolver appears to still call module.register(...).

Expected behavior

No DEP0205 warning on Node 26 startup (prefer module.registerHooks() path).

Notes

  • This is non-blocking right now.
  • Dev server still starts normally.

Metadata

Metadata

Assignees

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions