You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm install followed by npm run start returns the following warnings
WARNING in ./src/index.js 5:0-20
"export 'defineCustomElements' was not found in '@shoelace-style/shoelace'
WARNING in ./src/index.js 4:0-12
"export 'setAssetPath' was not found in '@shoelace-style/shoelace'
On page load, the bundled js fails:
index.js?b635:4 Uncaught TypeError: Object(...) is not a function
at eval (index.js?b635:4)
at Module../src/index.js (main.js:167)
at __webpack_require__ (main.js:20)
at main.js:84
at main.js:87
Which points to a problem with this function:
setAssetPath(document.currentScript.src);
I then tried to play with various import schemes, to no avail.
Hi, I'd like to play with this config but I'm too much of a noob regarding webpack to understand what's broken here.
npm install
followed bynpm run start
returns the following warningsOn page load, the bundled js fails:
Which points to a problem with this function:
I then tried to play with various import schemes, to no avail.
So tried this import (setAssetsPath does not resolve):
Then this (I don't think I'm supposed to do this anyways):
Could you please advice? Could I be missing a dependency of some sort? Or a requirement?
The text was updated successfully, but these errors were encountered: