mattpocock / xstate-codegen

A codegen tool for 100% TS type-safety in XState
MIT License
245 stars 12 forks source link

Doesn't work with Snowpack #72

Open maciekmaciej opened 3 years ago

maciekmaciej commented 3 years ago

Hey! I love your work at this package!

It doesn't seem to work with Snowpack. I'm getting this error:

SyntaxError: The requested module '../../../../../_snowpack/pkg/@xstate/compiled/react.js' does not provide an export named 'useMachine'
danielkcz commented 3 years ago

I think you will need to investigate the problem by yourself. This tool is not doing anything special, so it's likely a problem in Snowpack. Maybe open an issue with them to help you out?

maciekmaciej commented 3 years ago

Okey, I'll try to figure it out on a snowpack side. Thanks!