-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
I am getting error when I use multipleSelect . "Cannot find type definition file for 'trusted-types'. " #1313
Comments
After I installed @types/dompurify, everything started working properly again. |
oh ok thanks for the feedback, I will make |
There was a request in TypeScript to make |
I have removed DOMPurify and installed @types/trusted-types. Its working well. Thank you for your suggestion. |
Great thanks again for confirming, I will release a new version tomorrow to include it has a dependency so you won't need to install it yourself. :) |
Thank you so much for your support. Adding to dependency will be helpful. I have another request (Not important). |
No I tried other lib like And by the way, I'm using moment-mini instead of So in short, I'm not interested to move to other libs, I wanted to do that couple years ago but didn't find good libraries to migrate to since they are all missing something. However at this point |
I agree with you. Thank you for providing a thorough explanation. |
- update to latest Slickgrid-Universal which has the following 2 changes 1. add missing `@types/trusted-types` deps, fixes issue #1313 2. Slickgrid-Universal has improved types exports for TS Types discovery as can be shown in https://arethetypeswrong.github.io/?p=%40slickgrid-universal%2Fcommon%403.5.1
closed by PR #1314 and available in v6.5.1, don't forget to update both Angular-Slickgrid and Slickgrid-Universal dependencies if you have any |
Describe the bug
I attempted to upgrade Angular-Slickgrid to the most recent version. Then I tried to run/build the project. But its giving me the following errors.
Error: node_modules/multiple-select-vanilla/dist/types/interfaces/interfaces.d.ts:1:23 - error TS2688: Cannot find type definition file for 'trusted-types'.
1 ///
~~~~~~~~~~~~~
Error: node_modules/multiple-select-vanilla/dist/types/interfaces/interfaces.d.ts:47:44 - error TS2304: Cannot find name 'TrustedHTML'.
Error: node_modules/multiple-select-vanilla/dist/types/interfaces/multipleSelectOption.interface.d.ts:1:23 - error TS2688: Cannot find type definition file for 'trusted-types'.
1 ///
~~~~~~~~~~~~~
Error: node_modules/multiple-select-vanilla/dist/types/interfaces/multipleSelectOption.interface.d.ts:174:44 - error TS2304: Cannot find name 'TrustedHTML'.
174 sanitizer?: (html: string) => string | TrustedHTML;
~~~~~~~~~~~it is
Reproduction
If you upgrade to the latest version, you may encounter this error. If you did not get this issue, I can create a sample project for your reference.
Expectation
There should not be any error from the node_modules folder.
Environment Info
Validations
The text was updated successfully, but these errors were encountered: