xstate-codegen icon indicating copy to clipboard operation
xstate-codegen copied to clipboard

Doesn't work with Snowpack

Open maciekmaciej opened this issue 4 years ago • 2 comments

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'

maciekmaciej avatar Jan 24 '21 15:01 maciekmaciej

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?

danielkcz avatar Jan 24 '21 15:01 danielkcz

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

maciekmaciej avatar Jan 24 '21 16:01 maciekmaciej