0 18.82 node_modules/mermaid/dist/utils.d.ts:1:30 - error TS7016: Could not find a declaration file for module 'd3'. '/app/node_modules/d3/src/index.js' implicitly has an 'any' type.
0 18.82 Try npm i --save-dev @types/d3 if it exists or add a new declaration (.d.ts) file containing declare module 'd3';
0 18.82
0 18.82 1 import { CurveFactory } from 'd3';
0 18.82 ~~~~
0 18.82
0 18.82 node_modules/mermaid/dist/utils.d.ts:83:66 - error TS1016: A required parameter cannot follow an optional parameter.
This seems to be a problem with inside https://github.com/mermaid-js/mermaid as I get the failure only for the latest v9.3.0 release. Could you create an issue with them?
FWIW, the plugin seems to work great locally, but it appears to break CI when added. Thanks for the great work!
Description
The Backstage docs recommend running
yarn tsc:full
as part of the CI process. After installing this plugin, that step fails for a backstage deploy.Steps to reproduce
npx @backstage/create-app
yarn add --cwd packages/app backstage-plugin-techdocs-addon-mermaid
TechDocsAddons
section ofApp.tsx
: