解决 – 要加载 ES 模块,请在 package.json 中设置 “type”: “module” 或使用 .mjs 扩展名
第一个解决方案,注意格式是有空格的
第二个是把文件名后缀改成 .mjs
- module extension the package Solvemodule extension the package solve maze the pollution policy solve the frameworks libraries packages modules patch patch-package node_modules modules packages build information the modulenotfounderror packaging module named workspace package笔记module 路径 模块package module patch-package node_module补丁package