-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Cannot find module '../theme/icons/unlink.svg' #17358
Comments
Hi @NesTeRDGIT! Thanks for reaching out. Could you please share more details about your project configuration and, ideally, share an example project with steps to reproduce the issue? Are you able to reproduce it with a build created by Online builder? |
@Mgsy This commit commit added export SVG files as modules typescript - this is error.
|
This is not reproducible on our side in a vanilla TS project: https://stackblitz.com/edit/vitejs-vite-7gibwb?file=index.html,src/style.css,src/main.ts,tsconfig.json&terminal=dev We already export SVG icons in other places, AFAIK, there's augmentation for SVG added on our side already: Line 6 in 25416ab
Could you share minimal repro for us to take a look? |
Thank you, we are investigating. Temporal workaround: |
Fix (link): Revert adding icons re-export. See #17358.
Issue solved with |
After updating to version 43.3.0, when building the project, we get an error:
node_modules/@ckeditor/ckeditor5-link/src/index.d.ts:21:37 - error TS2307: Cannot find module '../theme/icons/link.svg' or its corresponding type declarations.
Cause: #17304
I think need to add files *.d.ts for *.svg files or remove exporting svg as module.
The text was updated successfully, but these errors were encountered: