小磊z

关注

warning: to load an es module, set “type“: “module“ in the package.json or use the .mjs extension.

小磊z

关注

阅读 92

2022-01-09

两种方法

1.把当前的.js文件改成.mjs

2.在package.json中添加

"type": "module"

相关推荐

吴wuwu

ionic-Must use import to load ES Module解决方法

吴wuwu 68 0 0

一叶轻舟okok

《vue 3.0探险记》- 运行报错:Error: Cannot find module 'vue-loader-v16/package.json'

一叶轻舟okok 65 0 0

蚁族的乐土

Replace Autoprefixer browsers option to Browserslist config. Use browserslist key in package.json

蚁族的乐土 100 0 0

mjjackey

【已解决】ERROR in Failed to load plugin ‘flowtype‘ declared in ‘package.json » eslint-config-react-app‘:

mjjackey 87 0 0

精彩评论(0)

0 0 举报