No "exports" main defined
qarlosalberto opened this issue · comments
Carlos Alberto Ruiz Naranjo commented
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
Sander Verweij commented
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.