teovillanueva / react-native-web-maps

Cross platform maps for react & react-native 🗺
https://teovillanueva.github.io/react-native-web-maps/
MIT License
61 stars 15 forks source link

Example App.tsx not rendering MapView #8

Open wilkosz opened 2 years ago

wilkosz commented 2 years ago

Attempting to rendering in both a personal application as well as the cloned example app is breaking.

index.js:1 ./node_modules/@teovilla/react-native-web-maps/src/utils/region.ts 1:12
Module parse failed: Unexpected token (1:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> import type { BBox } from 'geojson';
| import type { Region } from 'react-native-maps';
|

Steps to replicate

$ git clone https://github.com/teovillanueva/react-native-web-maps.git $ cd react-native-web-maps/example $ yarn add @teovilla/react-native-web-maps $ expo start --web

Environment

node: v16.17.0 yarn: 1.22.17 expo: 6.0.5 platform: macOS Monterey

Duell10111 commented 2 years ago

Same problem, has probably something to do with the webpack 5 upgrade from expo?

darkcake commented 1 year ago

Is there some solution for this problem yet?

NilsBaumgartner1994 commented 6 months ago

I also have the same problem