Hi there,
I'm trying to use the Mermaid CLI via TypeScript and getting the following error:
Could not find a declaration file for module '@mermaid-js/mermaid-cli'. 'C:/path-to-project/node_modules/@mermaid-js/mermaid-cli/src/index.js' implicitly has an 'any' type.
There are types at 'C:/path-to-project/node_modules/@mermaid-js/mermaid-cli/dist-types/src/index.d.ts', but this result could not be resolved when respecting
package.json "exports". The '@mermaid-js/mermaid-cli' library may need to update its package.json or typings.
It seems like TypeScript needs the type declarations to be referenced in the "export" property as well. Is there something I can do on my part to make it compatible? Maybe a slightly different configuration?
Hi there, I'm trying to use the Mermaid CLI via TypeScript and getting the following error:
My TS config:
It seems like TypeScript needs the type declarations to be referenced in the "export" property as well. Is there something I can do on my part to make it compatible? Maybe a slightly different configuration?