PolymerX / lit-loader

LitElement Single File Component loader for Webpack.
MIT License
94 stars 8 forks source link

UnhandledPromiseRejectionWarning #71

Open suyouwanggang opened 4 years ago

suyouwanggang commented 4 years ago

(node:772) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token, expected "{" (5:57) at Object.raise (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:3834:17) at Object.unexpected (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:5142:16) at Object.expect (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:5134:28) at Object.parseClassBody (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:7938:10) at Object.parseClass (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:7913:10) at Object.parseExportDefaultExpression (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:8279:19) at Object.parseExport (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:8228:31) at Object.parseStatementContent (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:7290:27) at Object.parseStatement (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:7199:17) at Object.parseBlockOrModuleBlockBody (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:7757:25) at Object.parseBlockBody (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:7744:10) at Object.parseBlockBody (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:400:11) at Object.parseTopLevel (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:7164:10) at Object.parse (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:8565:17) at Object.parse (E:\vscode\lit-loader-example\node_modules\jscodeshift\node_modules\@babel\parser\lib\index.js:10537:38) at Object.parse (E:\vscode\lit-loader-example\node_modules\jscodeshift\parser\babel5Compat.js:48:22) at Object.parse (E:\vscode\lit-loader-example\node_modules\recast\lib\parser.js:28:30) at fromSource (E:\vscode\lit-loader-example\node_modules\jscodeshift\src\core.js:84:25) at core (E:\vscode\lit-loader-example\node_modules\jscodeshift\src\core.js:46:5) at addRenderTemplate (E:\vscode\lit-loader-example\node_modules\lit-loader\src\enrich.js:17:57) at module.exports (E:\vscode\lit-loader-example\node_modules\lit-loader\src\enrich.js:26:2) at Object.module.exports (E:\vscode\lit-loader-example\node_modules\lit-loader\src\index.js:20:19) (node:772) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:772) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.