reactjs-solidjs-bridge icon indicating copy to clipboard operation
reactjs-solidjs-bridge copied to clipboard

How do I get React-Solid Bridge to work with Next.js and TypeScript?

Open joshpoll opened this issue 2 years ago • 1 comments

Hi! I really love this library and want to use it to make a version of my Solid library that works natively in React.

However, I'm having trouble reproducing the example in the docs. I get "TypeError: web.template is not a function"

Here's a codesandbox with the error.

joshpoll avatar Nov 18 '23 19:11 joshpoll

Huh. I'm not too familiar with Next.js. It's always been a pain for me to use. The last time I messed with this library, I was trying to get it working with Vite.js (rather than Webpack) and ran into some trouble getting it to play nice compiling React and Solid side-by-side. Not sure where I left off.

Feel free to add a PR if you wanna update anything!

Sawtaytoes avatar Nov 20 '23 10:11 Sawtaytoes