Skip to content

Using Islands with third party components? #509

Discussion options

You must be logged in to vote

Finally got it working. Turns out that I had imported a solid component as a non-default export which was from a Server component. I think in the Documentation repo here, they do export the <A> component as default from solid-start, and have to import it into an island. So I ended up having to do the same thing.

Before:

App.tsx

  • const FeaturesDesktop = unstable_island(()=>import("./FeaturesDesktop")
  • export function FeatureComponent(props) {
  • function FeaturesMobile() {

FeaturesDesktop.tsx

  • import { FeatureComponent } from './App'

After:

App.tsx

  • const FeaturesDesktop = unstable_island(()=>import("./FeaturesDesktop")
  • import FeatureComponent from './FeatureComponent'
  • function FeaturesMobil…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by KjellConnelly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants