Skip to content

require() of ES Module is not supported #592

Closed
@muuvmuuv

Description

@muuvmuuv

What version of Tailwind CSS IntelliSense are you using?

For example: v0.8.6

What version of Tailwind CSS are you using?

For example: v3.1.8

What package manager are you using?

pnpm

What operating system are you using?

macos

Reproduction URL

Set "type: module" in package.json and use export default {}

Describe your issue

I have switched to "type: module" in my Vite project due to latest Vite changes and ECMA consistency. Unfortunately the VS Code extension throws an error but compilation works fine. It seems some sort of import error happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions