Skip to content

ES module error #15

Closed
Closed
@ThibaultVlacich

Description

@ThibaultVlacich

I'm getting this error coming from this package:

require is not defined in ES module scope, you can use import instead This file is being treated as an ES module because it has a '.js' file extension and './node_modules/bootstrap-icons-vue/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.

I think it appeared with a Vite update, but I can't be really sure. Any idea if there's something I can do in my config to fix this, or if the package needs to be updated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions