Unresolved import of Shoelace in a Stencil components project

53 Views Asked by At

[ 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

I got this error upon building my stencil component package. I believe I have followed the installation steps as a bundle based on Shoelace's docs, also have the Shoelace as a dependency but I still get this.

1

There are 1 best solutions below

0
On

That message is usually seen when the package has not been installed. You may need to run npm i @shoelace-style/shoelace.