Skip to content

ERROR ExperimentalWarning: CommonJS module is loading ES Module #927

@kswedberg

Description

@kswedberg

Environment

Reproduction

No response

Describe the bug

Using Node LTS version (22.12.0) produces this error/warning:

[4:24:26 PM]  ERROR  (node:94662) ExperimentalWarning: CommonJS module [...]/nuxt3-app/.nuxt/tailwind.config.cjs is loading ES Module [...]/nuxt3-app/node_modules/@nuxtjs/tailwindcss/dist/runtime/merger.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time

Is there a way @nuxt/tailwindcss could produce an ES module instead (e.g. .nuxt/tailwind.config.mjs)?

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions