xstate-codegen
xstate-codegen copied to clipboard
Error: 'Machine' is not exported by node_modules/@xstate/compiled/index.js (rollup)
Problem:
Rollup cannot import {Machine} from "@xstate/compiled"
How to fix?
I added a index.es.js file:
export * from "xstate"
And patched package.json:
{
"name": "@xstate/compiled",
"main": "index.js",
"module": "index.es.js",
"version": "0.0.4"
}
Nice. This looks fine to add.
Probably also needs one for react too.
I have added a template index.es.js only in the PR #57