我正在使用primereact和react-google-charts。然而,它们都要求我将组件称为Charts。当我写一个图表时,会出现错误。我应该遵循什么解决方案?
(https://i.stack.imgur.com/4qGie.png)(https://i.stack.imgur.com/5dpNr.png)
我尝试将组件称为chart,但VSCode报错。然后我尝试将其称为Gantt,但出现了上述错误。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
你可以使用导入别名
现在你可以在任何地方使用 GoogleChart 和 PrimeChart