#Error using @xstate/solid: missing exports

1 messages · Page 1 of 1 (latest)

candid stump
#

When setting up a new project with xstate + solid, Vite is reporting missing exports,

✘ [ERROR] No matching export in "node_modules/xstate/dist/xstate.development.esm.js" for import "State"

    node_modules/@xstate/solid/es/createService.js:39:20:
      39 │ import { interpret, State } from 'xstate';
         ╵                     ~~~~~

✘ [ERROR] No matching export in "node_modules/xstate/dist/xstate.development.esm.js" for import "InterpreterStatus"

    node_modules/@xstate/solid/es/useMachine.js:17:9:
      17 │ import { InterpreterStatus, State } from 'xstate';
         ╵          ~~~~~~~~~~~~~~~~~

✘ [ERROR] No matching export in "node_modules/xstate/dist/xstate.development.esm.js" for import "State"

    node_modules/@xstate/solid/es/useMachine.js:17:28:
      17 │ import { InterpreterStatus, State } from 'xstate';
         ╵                             ~~~~~

Does @xstate/slolid work with xstate v5?

PS. Consider having "solid" and "vite" issue tags here on discord?

digital prawn
#

cc. @vivid spruce