ERROR Failed to compile with 2 errors These relative modules were not found:

ERROR Failed to compile with 2 errors These relative modules were not found:

 提示在./node_modules/flatgeobuf/lib/mjs/packedrtree.js中找不到./config.js

./node_modules/flatgeobuf/lib/mjs/generic/featurecollection.js 中找不到../logger.js

如果是用vscode编写,按住ctrl+报错文件名 进入到该报错文件

ERROR Failed to compile with 2 errors These relative modules were not found:

根据引入 import Config from ‘./config.js’ 去寻找路径’./’下有没有config.js文件

发现只有”Config.js”,有理由怀疑是否是大小写原因导致引入失败,将Config变换为config.js后解决问题

ERROR Failed to compile with 2 errors These relative modules were not found:

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://www.net2asp.com/e75c8f0e7b.html