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
This is my first time using Swiper and coincidently also my first time using Solid.JS seriously to make an MVP. I'm using the latest version of Swiper Element (WebComponent) v11.1.1, along with Solid.JS, Typescript, and TailwindCSS.
After referencing issue #6614 and issue #6466, I was able to resolve the errors with swiper-container but I'm still unable to resolve the errors with swiper-slide.
The swiper-slide element gives the following errors:
This JSX tag's 'children' prop expects type 'HTMLCollection' which requires multiple children, but only a single child was provided.
Type 'import(".../node_modules/.pnpm/[email protected]/node_modules/solid-js/types/jsx").JSX.Element' is not assignable to type 'Element'.
While I vaguely understand the second error, I do not know how to solve it. Any help in understanding and resolving the issue is appreciated. Below I have created a custom component, GenericSlider, which is where all the Swiper code is located:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone,
This is my first time using Swiper and coincidently also my first time using Solid.JS seriously to make an MVP. I'm using the latest version of Swiper Element (WebComponent) v11.1.1, along with Solid.JS, Typescript, and TailwindCSS.
After referencing issue #6614 and issue #6466, I was able to resolve the errors with
swiper-container
but I'm still unable to resolve the errors withswiper-slide
.The
swiper-slide
element gives the following errors:This JSX tag's 'children' prop expects type 'HTMLCollection' which requires multiple children, but only a single child was provided.
Type 'import(".../node_modules/.pnpm/[email protected]/node_modules/solid-js/types/jsx").JSX.Element' is not assignable to type 'Element'.
While I vaguely understand the second error, I do not know how to solve it. Any help in understanding and resolving the issue is appreciated. Below I have created a custom component, GenericSlider, which is where all the Swiper code is located:
Beta Was this translation helpful? Give feedback.
All reactions