[ WARN ] Bundling Warning UNRESOLVED_IMPORT '@shoelace-style/shoelace' is imported by src/global/index.ts, but could not be resolved – treating it as an external dependency
我在构建模板组件包时遇到此错误。我相信我已经按照基于 Shoelace 文档的捆绑包的安装步骤进行操作,也将 Shoelace 作为依赖项,但我仍然得到了这个。
该消息通常在软件包尚未安装时出现。您可能需要运行
npm i @shoelace-style/shoelace
。