简体   繁体   English

Angular 14 发生未处理的异常:脚本文件 node_modules/tinymce/themes/modern/theme.min.js 不存在

[英]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.

相关问题 发生未处理的异常:脚本文件../node_modules/chart.js 不存在 - An unhandled exception occurred: Script file ../node_modules/chart.js does not exist 发生未处理的异常:找不到模块 &#39;C:\\Users\\...\\node_modules\\@angular-devkit\\build-angular\\src\\dev-server&#39; - An unhandled exception occurred: Cannot find module 'C:\Users\...\node_modules\@angular-devkit\build-angular\src\dev-server' 发生未处理的异常:文件替换中的 \environments\environment.prod.ts 路径不存在 - An unhandled exception occurred: \environments\environment.prod.ts path in file replacements does not exist 发生未处理的异常:作业名称“..getProjectMetadata”不存在 - An unhandled exception occurred: Job name "..getProjectMetadata" does not exist Angular-CLI:如何从node_modules中引用.js <script>-Tag? - Angular-CLI: How to refer to .js from node_modules in <script>-Tag? 节点js中的node_modules / .bin / package.cmd文件 - node_modules/.bin/package.cmd file in node js script标记如何解析node_modules的路径? - How does script tag resolves path to node_modules? rollup 是否将 node_modules 捆绑到 bundle.js 中? - Does rollup bundle node_modules into bundle.js? Webpack不会从node_modules导入包(仅适用于js) - Webpack does not import bundles from node_modules (js only) 类型错误:回调不是 function,“node_modules\jsonwebtoken\sign.js:101:14)” - TypeError: callback is not a function, "node_modules\jsonwebtoken\sign.js:101:14)"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM