提示在./node_modules/flatgeobuf/lib/mjs/packedrtree.js中找不到./config.js
./node_modules/flatgeobuf/lib/mjs/generic/featurecollection.js 中找不到../logger.js
如果是用vscode编写,按住ctrl+报错文件名 进入到该报错文件
根据引入 import Config from './config.js' 去寻找路径'./'下有没有config.js文件
发现只有"Config.js",有理由怀疑是否是大小写原因导致引入失败,将Config变换为config.js后解决问题文章来源:https://www.toymoban.com/news/detail-784025.html
文章来源地址https://www.toymoban.com/news/detail-784025.html
到了这里,关于ERROR Failed to compile with 2 errors These relative modules were not found:的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!