Failed to parse source map from '/Users/felix/Documents/MobileWork/work/数据大屏/tsrsdv/scene_drill/node_modules/@antv/util/esm/path/convert/src/path/convert/path-2-absolute.ts' file: Error: ENOENT: no sfile or directory, open '/Users/felix/Documents/MobileWork/work/数据大屏/tsrsdv/scene_drill/node_modules/@antv/util/esm/path/convert/src/path/convert/path-2-absolute.ts'
底下还有很多很多
在安装后,使用就会出现大量这样的路径错误。
下面是复现问题的步骤:
yarn create react-app scene --template typescript
cd scene
yarn add @antv/util
修改 App.tsx 文件:
import React from 'react';
import logo from './logo.svg';
import './App.css';
// 添加一行
import { gradient } from '@antv/util';
function App() {
// 添加另一行
console.log('gradient',gradient)
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}
export default App;
在安装后,使用就会出现大量这样的路径错误。
下面是复现问题的步骤:
修改
App.tsx
文件:之后执行
yarn start
命令就可以看见大量.ts
找不到了。好像不影响使用,只是日志很长,看不见
On Your Network
了。