shoelace-style/webpack-example

got an error when running this example

ifsct opened this issue · 0 comments

ifsct commented

I cloned this repository, installed packages, didn't modify the source code, then i got this error:

index.js?b635:4 Uncaught TypeError: Object(...) is not a function
    at eval (index.js?b635:4)
    at Module../src/index.js (main.js:327)
    at __webpack_require__ (main.js:64)
    at main.js:199
    at main.js:202

also, there is no setAssetPath Interface in @shoelace-style/shoelace/dist/custom-elements,
when running npm run build, the console will show:

WARNING in ./src/index.js 4:0-12
"export 'setAssetPath' was not found in '@shoelace-style/shoelace/dist/custom-elements'

I'm confused...😿