我已经创建了一个应用,并想使用ng build --prod
来构建它。这样做时,我收到了当前版本的syncfusion的错误消息。
以下是我遇到的错误:
ERROR in ./node_modules/@syncfusion/ej2-angular-dropdowns/@syncfusion/ej2-angular-dropdowns.es5.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
Error: Debug Failure. False expression.
at getJSDocTags (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13197:22)
at getFirstJSDocTag (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13205:24)
at Object.getJSDocTypeTag (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13154:19)
at checkParenthesizedExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45628:56)
at checkExpressionWorker (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45676:28)
at checkExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45609:42)
at checkBinaryLikeExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45155:29)
at checkBinaryExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45147:20)
at checkExpressionWorker (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45702:28)
at checkExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45609:42)
at checkExpressionCached (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45457:38)
at getTypeOfExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45577:28)
at checkDeclarationInitializer (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45469:24)
at getTypeForVariableLikeDeclaration (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:30738:28)
at getWidenedTypeForVariableLikeDeclaration (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:30961:24)
at getTypeOfVariableOrParameterOrProperty (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:31062:28)
ERROR in ./node_modules/@syncfusion/ej2-angular-calendars/@syncfusion/ej2-angular-calendars.es5.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
Error: Debug Failure. False expression.
at getJSDocTags (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13197:22)
at getFirstJSDocTag (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13205:24)
at Object.getJSDocTypeTag (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13154:19)
at checkParenthesizedExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45628:56)
at checkExpressionWorker (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45676:28)
at checkExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45609:42)
at checkBinaryLikeExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45155:29)
at checkBinaryExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45147:20)
at checkExpressionWorker (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45702:28)
at checkExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45609:42)
at checkExpressionCached (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45457:38)
at getTypeOfExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45577:28)
at checkDeclarationInitializer (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45469:24)
at getTypeForVariableLikeDeclaration (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:30738:28)
at getWidenedTypeForVariableLikeDeclaration (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:30961:24)
at getTypeOfVariableOrParameterOrProperty (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:31062:28)
ERROR in ./node_modules/@syncfusion/ej2-angular-inputs/@syncfusion/ej2-angular-inputs.es5.js
Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
Error: Debug Failure. False expression.
at getJSDocTags (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13197:22)
at getFirstJSDocTag (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13205:24)
at Object.getJSDocTypeTag (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13154:19)
at checkParenthesizedExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45628:56)
at checkExpressionWorker (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45676:28)
at checkExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45609:42)
at checkBinaryLikeExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45155:29)
at checkBinaryExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45147:20)
at checkExpressionWorker (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45702:28)
at checkExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45609:42)
at checkExpressionCached (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45457:38)
at getTypeOfExpression (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45577:28)
at checkDeclarationInitializer (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45469:24)
at getTypeForVariableLikeDeclaration (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:30738:28)
at getWidenedTypeForVariableLikeDeclaration (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:30961:24)
at getTypeOfVariableOrParameterOrProperty (F:\school-web-admin\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:31062:28)
i 「wdm」: Failed to compile
。
以下是用于Syncfusion的依赖项:
"@syncfusion/ej2-angular-calendars": "^17.1.49",
"@syncfusion/ej2-angular-dropdowns": "^17.1.49",
"@syncfusion/ej2-angular-inputs": "^17.1.49",
"@syncfusion/ej2-angular-splitbuttons": "^17.1.47",
注意:仅使用ng build即可成功运行。
答案 0 :(得分:0)
我们检查了报告的问题,其中提到了Syncfusion组件,但最终无法重现该问题。我们怀疑此问题是由于构建优化程序引起的,因此,请您分享以下详细信息,以帮助您更好地工作。
angular-cli version
@angular-devkit\build-optimizer version
但是,我们创建了一个样本供您参考,您可以从下面的链接下载该样本。
示例:http://www.syncfusion.com/downloads/support/directtrac/239187/ze/angular-apps-514191590
如果您还有其他疑问,请告诉我们。
此致
Syncfusion团队