[英]Angular 14 An unhandled exception occurred: Script file node_modules/tinymce/themes/modern/theme.min.js does not exist
When run ng serve
it show message:当运行
ng serve
它显示消息:
⠋ Generating browser application bundles (phase: setup)...An unhandled exception occurred: Script file node_modules/tinymce/themes/modern/theme.min.js does not exist.
⠋ Generating browser application bundles (phase: setup)...
and always loading.并始终加载。
please help me.请帮我。
This my angular version:这是我的角度版本:
Angular CLI: 14.0.6 Node: 16.16.0 Package Manager: NPM 8.14.0 OS: win32 x64 Angular: 14.0.6 Package Version --------------------------------------------------------- @angular-devkit/architect 0.1400.6 @angular-devkit/build-angular 14.0.6 '@angular-devkit/core 14.0.6' @angular-devkit/schematics 14.0.6 ----------
What version of TinyMCE are you trying to use?您尝试使用哪个版本的 TinyMCE? The
modern
theme was part of TinyMCE 4 but does not exist in TinyMCE 5 or newer. modern
主题是 TinyMCE 4 的一部分,但在 TinyMCE 5 或更高版本中不存在。 If you have something like:如果你有类似的东西:
theme: 'modern'
...in your TinyMCE configuration you need to remove that. ...在您的 TinyMCE 配置中,您需要删除它。 If you don't state any theme value in your configuration TinyMCE will use its default (which is called Silver in TinyMCE 5 or newer).
如果您没有在配置中声明任何主题值,TinyMCE 将使用其默认值(在 TinyMCE 5 或更高版本中称为 Silver)。
If you are module loading TinyMCE you may be trying to import that theme which does not exist so you would need to import a theme that exists in the version of TinyMCE you are using.如果您正在加载 TinyMCE 的模块,您可能会尝试导入不存在的主题,因此您需要导入您正在使用的 TinyMCE 版本中存在的主题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.