I correctly installed the component via Yarn. However, it sends me warnings finding errors when searching for certain files, I’ll put them below.
ERROR in ./node_modules/@spectrum-web-components/picker/node_modules/@spectrum-web-components/overlay/sp-overlay.dev.js 2:0-84
Module not found: Error: Package path ./src/define-element.js is not exported from package C:\.......\node_modules\@spectrum-web-components\base (see exports field in C:\.....\node_modules\@spectrum-web-components\base\package.json)
And many others of this kind, like:
userFocusableSelector
fisrtFocusableSlottedIn
My question is: Could I have installed the wrong packages? Or do I have to install some more dependencies to be able to use them correctly?
It appears to be functions that are not present in the library, but should
I would suggest that you read this first, taking note of the supported components (sp-overlay is not one of them).
Once you’ve digested that I’d take a good look at the React SWC Starter. Personally, I found the starter readme to be the most helpful.
You can also check out this thread for more detail.
Yeah; it took me about a day and a half to cross reference the docs and the starter project and work it out; it’s not an easy workflow to document!
Let us know how you get on with it - happy to help
I admit that not having as much experience with javascript and React makes things a little difficult.
But in this case I had to go back a few steps and stop using " import { Components } " and start using " " seem simpler. I still don’t quite understand the logic of " import { Components } ".
More precisely when importing via @swc-react or @spectrum-web-components.
But I thank the community, you and this forum that has helped me with all the issues.