gpt4 book ai didi

javascript - 在构建 Angular-6 应用程序时遇到此错误,我该如何解决此问题?

转载 作者:行者123 更新时间:2023-12-03 01:15:10 25 4
gpt4 key购买 nike

**ng build --prod (error) how i can resolve this issue!**

F:\practice\ang-node\frontend> ng build --prod

Date: 2018-08-28T04:08:06.648Z Hash: 61fab25db19a36ad55ca Time: 89374ms chunk {0} runtime.a66f828dca56eeb90e02.js (runtime) 1.05 kB [entry] [rendered] chunk {1} styles.78fc82606a60ff243473.css (styles) 193 kB [initial] [rendered] chunk {2} polyfills.7a0e6866a34e280f48e7.js (polyfills) 59.6 kB [initial] [rendered] chunk {3} main.b6f6160fdfad736b2ba4.js (main) 1.18 MB [initial] [rendered]

ERROR in ./node_modules/angular2-jwt/angular2-jwt.js Module build failed: Error: Debug Failure. False expression. at getJSDocTags (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13197:22) at getFirstJSDocTag (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13205:24) at Object.getJSDocTypeTag (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:13154:19) at checkParenthesizedExpression (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45628:56) at checkExpressionWorker (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45676:28) at checkExpression (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45609:42) at checkBinaryLikeExpression (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45155:29) at checkBinaryExpression (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45147:20) at checkExpressionWorker (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45702:28) at checkExpression (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45609:42) at checkExpressionCached (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45457:38) at getTypeOfExpression (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45577:28) at checkDeclarationInitializer (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:45469:24) at getTypeForVariableLikeDeclaration (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:30738:28) at getWidenedTypeForVariableLikeDeclaration (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:30961:24) at getTypeOfVariableOrParameterOrProperty (F:\practice\ang-node\frontend\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:31062:28)

F:\practice\ang-node\frontend> enter image description here **

最佳答案

angular2-jwt 应该仅与 Angular 2 一起使用。对于 Angular 6,您需要使用支持 RxJS v6+ 的 @auth0/angular-jwt

关于javascript - 在构建 Angular-6 应用程序时遇到此错误,我该如何解决此问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52050280/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com