SyntaxError:在ScriptTransformer._transformAndBuildScript上意外导入了令牌

时间:2019-06-03 13:46:50

标签: reactjs jestjs

我收到以下错误

    SyntaxError: Unexpected token import

  at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/b
  uild/ScriptTransformer.js:289:17)
  at Object.<anonymous> (src/containers/login/login.container.js:7:48)
  at Object.<anonymous> (src/containers/routes.js:18:243)

努力修复它。

0 个答案:

没有答案