Property 'giscus-widget' does not exist on type 'JSX.IntrinsicElements'
I'm trying to add wrapper for giscus library: https://github.com/giscus/giscus-component for Solid
I'm now probably at the last step but I'm getting this error.
Any idea what might be causing it?
GitHub
GitHub - giscus/giscus-component: Component library for giscus, a c...
Component library for giscus, a comments system powered by GitHub Discussions. - GitHub - giscus/giscus-component: Component library for giscus, a comments system powered by GitHub Discussions.
8 Replies
- You shouldn't override global, but the
solid-js
module
- little tip but you probably shouldn't destructure propswill do. i was following the pattern given in the repo but it did not work and so i tried the above code.
following the repo i added the below code in
vite-env.d.ts
but still the same error
Yes but again you should't override the global but the solid-js module, here's an example https://github.com/lxsmnsyc/solid-labels/blob/7aa2c38f2409670cdeac1ecf2d5d7105a678dadc/packages/babel-plugin-solid-labels/src/index.ts#L183
thanks for the help!
this is now working w/o any errors
Hey @pcblazef, sorry for reviving this old thread but I'm trying to use your component and I'm running into issues
For context, I'm trying to use it in a Solid Start project, and getting the error
v.template is not a function
Where v
seems to be the require
'd solid-js/web
packageit's most likely that the package is built only for the client
so you can't load it in SolidStart normally
I see, think I should maybe load lazily?
ended up building this wrapper as a hack:
Uh, this loads a whole another solid into the page 😦
I think I'll just copy the component code into my project, but it'd be awesome to make this work properly, I'll see if I can investigate how that could be achieved
Will check this tonight and let you know if I find anything