在构建角度应用程序期间,./node_modules/@syncfusion/ej2-angular-richtexteditor/@syncfusion/ej2-angular-richtexteditor.es5.js中发生错误

时间:2019-11-23 11:19:05

标签: angular npm rich-text-editor syncfusion

我们在我的package.json中使用了以下版本:“ @ syncfusion / ej2-angular-richtexteditor”:“ ^ 17.3.28”:,“ typescript”:“ ^ 3.1.3”,“ @ angular / cli” :“ ^ 7.0.3”,

当我们尝试使用npm构建项目时,运行build:ssr,它显示以下错误。

./node_modules/@syncfusion/ej2-angular-richtexteditor/@syncfusion/ej2-angular-richtexteditor.es5.js中的

错误 模块构建失败(来自./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): 错误:调试失败。错误的表达。     在getJSDocTags(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:13197:22)     在getFirstJSDocTag(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:13205:24处)     在Object.getJSDocTypeTag(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:13154:19)     在checkParenthesizedExpression(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45628:56处)     在checkExpressionWorker(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45676:28)     在checkExpression(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45609:42)     在checkBinaryLikeExpression(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45155:29)     在checkBinaryExpression(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45147:20)中     在checkExpressionWorker(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45702:28)     在checkExpression(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45609:42)     在checkExpressionCached(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45457:38)     在getTypeOfExpression(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45577:28处)     在checkDeclarationInitializer(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:45469:24处)     在getTypeForVariableLikeDeclaration(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:30738:28处)     在getWidenedTypeForVariableLikeDeclaration(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:30961:24处)     在getTypeOfVariableOrParameterOrProperty(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:31062:28)     在getTypeOfSymbol(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:31242:24)     在checkVariableLikeDeclaration(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:47828:41)中     在checkVariableDeclaration(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:47891:20)中     在checkSourceElement(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:49864:28)     在Object.forEach(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:1792:30)     在checkVariableStatement(/ media / devteam / New Volume/GIT_LFS/trd_11_2019_code/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:47901:16处) npm ERR!代码ELIFECYCLE npm ERR! errno 1 npm ERR! angular-io-example@1.0.0 build:客户端和服务器捆绑包:ng build --prod --aot --buildOptimizer && ng run angular.io-example:server npm ERR!退出状态1 npm ERR! npm ERR!在angular-io-example@1.0.0 build:client-and-server-bundles脚本处失败。 npm ERR! npm可能不是问题。上面可能还有其他日志记录输出。

npm错误!代码ELIFECYCLE npm ERR! errno 1 npm ERR! angular-io-example@1.0.0 build:ssr:npm run build:client-and-server-bundles && npm run webpack:server npm ERR!退出状态1 npm ERR! npm ERR!在angular-io-example@1.0.0 build:ssr脚本处失败。 npm ERR! npm可能不是问题。上面可能还有其他日志记录输出。

1 个答案:

答案 0 :(得分:0)

Syncfusion的问候。

我们已经验证了所报告的问题,但无法复制。为了方便起见,我们随附了一个演示样本。如果报告的问题仍然存在于随附的演示中,请检查并联系我们。还要确保您在应用程序中使用了最新版本的“ @ angular-devkit / build-angular” 依赖项。

演示样本:https://www.syncfusion.com/downloads/support/directtrac/general/ze/syncfusion-angular-app752756918

如果您能提供更多的信息来重现问题,那么尽早提供更好的解决方案将更有用。

如果您需要进一步的帮助,请随时与我们联系。

此致

Narayanasamy P。