Skip to content

vue2 fails to parse require("vue/package.json") in vite5, the path is wrong, does it not support esm and only supports commonjs? Or does it require special converter support? #313

@liangyi-h5

Description

@liangyi-h5
  • vue2 fails to parse require("vue/package.json") in vite5, the path is wrong, does it not support esm and only supports commonjs? Or does it require special converter support?
  • vue2 在vite5 中解析 require("vue/package.json") 失败,路径不对,是不是不支持 esm 只支持 commonjs?还是需要特殊的转换器支持

image

demo

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