-
-
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 ckeditor5/translations/pl.js
or its corresponding type declarations
#16535
Comments
When I downloaded this demo and ran it locally, I got the following error:
This happens because
It looks like this issue is caused by the We could fix this by adding the following to "./dist/translations/*.js": {
"types": "./dist/translations/*.d.ts",
"import": "./dist/translations/*.js"
} This would allow importing translations like so: import coreTranslations from 'ckeditor5/dist/translations/pl.js';
// ^^^^
import commercialTranslations from 'ckeditor5-premium-features/dist/translations/pl.js';
// ^^^^ However, since |
I have the same problem. How to solve it? |
This issue was resolved in import translations from 'ckeditor5/translations/ru.js'; |
I have the latest version it helped me
|
If |
📝 Provide detailed reproduction steps (if any)
translations/
file like in these docs (https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/getting-started/setup/ui-language.html#npm)✔️ Expected result
No errors. Translations should be properly typed.
❌ Actual result
The text was updated successfully, but these errors were encountered: