While trying to test our components with mocha. We are experiencing issues with the library. Giving this error:
import { MobxLitElement } from "@adobe/lit-mobx";
^^^^^^^^^^^^^^
SyntaxError: Named export 'MobxLitElement' not found. The requested module '@adobe/lit-mobx' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@adobe/lit-mobx';
const { MobxLitElement } = pkg;
Now if we add "type": "module" to packge.json file of the @adobe/lit-mobx error goes away.
Is it possible that this is missing from the lib ? Or to add and *.mjs export ?
While trying to test our components with mocha. We are experiencing issues with the library. Giving this error:
Now if we add "type": "module" to packge.json file of the @adobe/lit-mobx error goes away.
Is it possible that this is missing from the lib ? Or to add and *.mjs export ?