我将类型记录安装到现有文件夹中。我有个特别的错误
error 'JSX' is not defined no-undef这是我在这个文件中的导入
import React from 'react';
import { screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { defineFeature, DefineStepFunction, loadFeature } from 'jest-cucumber';
import { render } from 'configs/jest/testUtils';
import AppNavigation from 'src/components/AppNavigation';你有什么想法吗?非常感谢!
发布于 2022-04-01 10:37:36
我认为在打字稿中没有JSX。尝试将.jsx更改为.tsx
https://stackoverflow.com/questions/71705453
复制相似问题