Skip to content

[DEP0205] DeprecationWarning: module.register() is deprecated. Use module.registerHooks() instead. #19893

@ShenHongFei

Description

@ShenHongFei

What version of Tailwind CSS are you using?

"@tailwindcss/vite": "^4.2.2",

What build tool (or framework if it abstracts the build tool) are you using?

"vite": "^8.0.3",

What version of Node.js are you using?

v26.0.0 (main branch)

What browser are you using?

N/A

What operating system are you using?

Windows

Reproduction URL

await import('@tailwindcss/vite')

Describe your issue

[DEP0205] DeprecationWarning: `module.register()` is deprecated. Use `module.registerHooks()` instead.
    at node:internal/util:129:11
    at Module.register (node:internal/modules/esm/loader:969:3)
    at file:///D:/0/node_modules/.pnpm/@tailwindcss+node@4.2.2/node_modules/@tailwindcss/node/dist/index.mjs:18:214
    at ModuleJob.run (node:internal/modules/esm/module_job:437:25)
    at async node:internal/modules/esm/loader:642:26
    at async Project.build (file:///D:/0/lib/project.ts:1058:46)
    at async rpc (file:///D:/0/lib/server.ts:254:28)
    at async Remote.handle (file:///D:/0/lib/net.common.ts:777:30)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions