Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Error: 'Machine' is not exported by node_modules/@xstate/compiled/index.js (rollup) #56

Open
@pyoner

Description

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"
}

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions