We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何重现:
npx create-react-app example --template typescript cd example npm i @uiw/react-baidu-map
src/App.tsx
import './App.css'; import { Map, APILoader, } from '@uiw/react-baidu-map'; const Demo = () => ( <div style={{ width: '100%', height: '1000px', overflow: 'auto' }}> <APILoader akay="eYpCTECSntZmw0WyoQ7zFpCRR9cpgHFG"> <Map zoom={13} style={{ height: 1000 }} enableScrollWheelZoom={true} enableContinuousZoom={true} > </Map> </APILoader> </div> ); function App() { return <Demo></Demo> } export default App;
npm start
当用户用鼠标滚轮放大地图会抛出 Uncaught TypeError: Cannot read properties of undefined (reading 'style') 并显示:
Uncaught TypeError: Cannot read properties of undefined (reading 'style')
如果 npm run build 并用生产版本运行不会出现这个问题。
npm run build
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如何重现:
src/App.tsx
:npm start
当用户用鼠标滚轮放大地图会抛出
Uncaught TypeError: Cannot read properties of undefined (reading 'style')
并显示:如果
npm run build
并用生产版本运行不会出现这个问题。The text was updated successfully, but these errors were encountered: