sverweij / state-machine-cat

write beautiful state charts :scream_cat:

Home Page:https://state-machine-cat.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No "exports" main defined

qarlosalberto opened this issue · comments

Hi,

I'm having this error using yarn:

 No "exports" main defined in /home/carlos/.vscode/extensions/teros-technology.teroshdl-5.0.0/node_modules/teroshdl2/node_modules/state-machine-cat/package.json

Hi @qarlosalberto from the error message I infer this issue

  • is about a vscode plugin (terroshdl?) which uses state-machine-cat => you might want to raise an issue with the maintainers of that plugin; there's little we can do here at state-machine-cat.
  • what might be happening is that the plugin (or one of its dependencies) has specified the version range for state-machine-cat on the liberal side (e.g. with >=). state-machine-cat 11 made a breaking change when it was migrated to an ESM and dropped commonjs support. If the plugin expects commonjs, it might bump into issues that might explain above error message.