-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to render useDrag hook in Snowpack results in a TypeError but works in other build systems #451
Comments
Hey @looeee thanks for the detailed report. I'll have a look as soon as I can. |
Damn Snowpack is hard to debug, no wonder why I ended up using Vite for the demo folder... I have no idea why this fails, especially since it builds properly. Since I cannot manage to integrate Snowpack as a package in |
Yeah it's the first time I've used Snowpack for a project and I'm definitely on the fence - I've had quite a few weird issues, although this is the first deal breaker. I'll try Vite if it can't be easily resolved. I switched to Snowpack after a frustrating couple of hours trying to get CRA to load WASM with the correct mimetype. Snowpack solved that problem, but caused this one. Feels like I'm playing build system whackamole here 😖
Yeah I think it's fine to let them debug this first. I posted here too in case they discovered something that needs to be changed in this library. Thanks for taking a look, I appreciate it. |
Hey, since there's been no response over on Snowpack (and hardly any activity on their repo at all) for a week, I'll close this issue for now. I'll report back here if they respond with anything useful and we can reopen this if necessary. |
Hey @looeee I'm running to the same issue with Sandpack. Did you ever figure out a workaround? |
(trying to add leva to a Sandpack sandbox and it breaks with the same useGesture error.) |
Attempting to render
useDrag
hook in Snowpack results in a TypeError. The same code in CRA or standard Codesand react template renders correctly.Codesandbox with snowpack: error
Standard react codesandbox: works
Result:
![error](https://user-images.githubusercontent.com/5307958/155880790-ef03549e-81bd-43a8-870b-f8ace3898c9c.png)
Expected result (as seen with CRA):
The word "Test" should appear and can be dragged around with the mouse.
Full error:
Also reported on snowpack repo: FredKSchott/snowpack#3878
The text was updated successfully, but these errors were encountered: