我使用的是react 16.6.3,react-flexbox-grid 2.1.2和Webpack版本4.25.1,并针对测试用例23.6和酶。在运行测试时,出现以下错误:
/home/sanju/Quizetencyplayground/quizetencyplatform/webapp/node_modules/flexboxgrid2/flexboxgrid2.css:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){.container {
^
SyntaxError: Unexpected token .
at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:403:17)
at Object.<anonymous> (node_modules/react-flexbox-grid/lib/classNames.js:8:20)
谁能告诉我解决方案,为什么要删除它
答案 0 :(得分:0)