Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typescript lit element\lib\decorators.js:意外的令牌错误_Typescript_Lit Element - Fatal编程技术网

Typescript lit element\lib\decorators.js:意外的令牌错误

Typescript lit element\lib\decorators.js:意外的令牌错误,typescript,lit-element,Typescript,Lit Element,我在运行react应用程序时遇到此错误 ./node_modules/lit-element/lib/decorators.js SyntaxError: C:\Development\Teams development\teams-master\node_modules\lit-element\lib\decorators.js: Unexpected token (209:21) 207 | name) => { 208 | const descrip

我在运行react应用程序时遇到此错误

./node_modules/lit-element/lib/decorators.js
SyntaxError: C:\Development\Teams development\teams-master\node_modules\lit-element\lib\decorators.js: Unexpected token (209:21)

  207 |     name) => {
  208 |         const descriptor = {
> 209 |             async get() {
      |                      ^
  210 |                 await this.updateComplete;
  211 |                 return this.renderRoot.querySelector(selector);
  212 |             },

在升级到最新的v7.11.1之后,这是Babel中的公开问题

当没有修复就绪时,您可以尝试将其降级:

"resolutions": {
  "@babel/core/@babel/parser": "7.11.0"
}