Open ErraticFox opened 4 hours ago
🤔 thats bizarre. I dont know what nonsense Webpack is pulling, but does the error go away if you add an import for <sl-tag>
import '@shoelace-style/shoelace/dist/components/tag/tag.js';
🤔 thats bizarre. I dont know what nonsense Webpack is pulling, but does the error go away if you add an import for
<sl-tag>
import '@shoelace-style/shoelace/dist/components/tag/tag.js';
Just tried and negative. I think the first time I ran across this, I imported all the dependencies just to make sure and it still didn't fix it.
🤔 on second look, its an issue with <sl-option>
Those are the only 2 spots I found which call slOption.getTextLabel()
that don't have undefined checks. Can you try adding import '@shoelace-style/shoelace/dist/components/option/option.js';
But also, these should probably have undefined checks in case the option hasn't been defined yet.
That was the solution! Should then sl-option
be an automatic imported dependency of sl-select
as well?
Describe the bug
sl-select
dropdown menu does not display nor function properly when imported via NPM.To Reproduce
Steps to reproduce the behavior:
python -m venv venv
and activatepip install -r .\requirements.txt
npm install
python .\run.py
npm run build
http://localhost:5000
sl-select
TypeError: _c.getTextLabel is not a function
Screenshots
Browser / OS
Additional information
This seems to be a bug with the node module because if I load shoelace via CDN,
sl-select
works fine. I've used countless of other shoelace components within my project importing with NPM without a problem.