-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some typescript import errors around missing files #5747
Comments
This issue persists with the latest releases. |
…rendering-util-types
#5798 addresses the missing file part of this. It appears the Options to fix this would would include:
"paths": {"mermaid/dist/*": ["src/*"]}
While the second option appears to work, as a downstream consumer I'd really favor the first option, as anything else is liable to become more brittle over time. However this is solved, a CI job that does a full build of the |
#5805 offers a full, tested proposal, implementing option 2 from the above comment. |
fix 5747 rendering util types
fix 5747 replace $root with relative paths
@bollwyvl it's out in v11.2.0! |
Thanks. Perhaps a |
Ohh, didn't notice there was no changeset for that. |
Done |
Description
Congratulations on
11.0.0
🎉 !When building running
tsc
on some code that importsmermaid
Steps to reproduce
Here is a minimal reproducer, but can confirm by inspection
rendering-utils/types.d.js
is not present in https://registry.npmjs.org/mermaid/-/mermaid-11.0.0.tgz . The$root
stuff looks plain wrong.Screenshots
No response
Code Sample
Setup
Suggested Solutions
.d.ts
files$root
pattern can be replaced withAdditional Context
Adding
skipLibCheck
makes this "work," but is infeasible for many projects.The text was updated successfully, but these errors were encountered: