我想使用 React 修復錯誤“Identifier config has already been declared”?我在文件 List.tsx 中使用如下所示的導入語句import {config} from 'react-spring';
import config from '../config';在我的配置文件中const config = { //something}
export default config;我收到錯誤標識符配置已聲明。有人可以幫我解決這個問題嗎?謝謝。
如何修復已使用 react 和 typescript 聲明的錯誤標識符?
倚天杖
2023-05-25 16:42:16