I'm currently working on the latest version of Bun.js and I'm currently working on the latest version of React and react-map-gl .
I am getting an error even though I have only loaded a component called Map . What causes these errors to occur?
Error
Uncaught ReferenceError: Cannot access 'default' before initialization
Code
import Map from 'react-map-gl';
const Home = () => {
return (
<div>
<h1>Hello</h1>
</div>
);
};
export default Home;