react-native-web-maps icon indicating copy to clipboard operation
react-native-web-maps copied to clipboard

Example App.tsx not rendering MapView

Open wilkosz opened this issue 2 years ago • 3 comments

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

wilkosz avatar Sep 12 '22 02:09 wilkosz

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

Duell10111 avatar Sep 19 '22 15:09 Duell10111

Is there some solution for this problem yet?

darkcake avatar Dec 24 '22 09:12 darkcake

I also have the same problem

NilsBaumgartner1994 avatar May 04 '24 13:05 NilsBaumgartner1994