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

Help on expo web metro bundling

Open hyochan opened this issue 2 years ago • 1 comments

Hi! I've tried this library and setup all configs in the readme.

config.resolve.alias['react-native'] = 'react-native-web';
config.resolve.alias['react-native-maps'] = 'react-native-web-maps';

I am currently facing below error while running on web.

Web Bundling failed 6794ms
Unable to resolve "../Utilities/Platform" from "node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js"

Import stack:
 node_modules/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js
 | import "../Utilities/Platform"

 node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js
 | import "react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"

 node_modules/react-native/Libraries/ReactNative/RendererImplementation.js
 | import "../Renderer/shims/ReactFabric"

 node_modules/react-native/Libraries/ReactNative/RendererProxy.js
 | import "./RendererImplementation"

 node_modules/react-native/Libraries/Utilities/codegenNativeCommands.js
 | import "../ReactNative/RendererProxy"

 node_modules/react-native-maps/lib/MapMarkerNativeComponent.js
 | import "react-native/Libraries/Utilities/codegenNativeCommands"
          Importing react-native internals is not supported on web.

 node_modules/react-native-maps/lib/MapMarker.js
 | import "./MapMarkerNativeComponent"

 node_modules/react-native-maps/lib/index.js
 | import "./MapMarker"

  app/view/map.tsx
 | import "react-native-maps"

  app (require.context)
  src/Details/Home/index.tsx
 | import "react-native-maps"

  app/mission/[missionId]/index.tsx
 | import "../../../src/Details/Home"

  app (require.context)

I also posted the issue in https://github.com/expo/expo/issues/23412#issuecomment-1636993537

May I get help on the issue?

hyochan avatar Jul 16 '23 06:07 hyochan

Anyone feel like addressing this?

tvillafane avatar Dec 21 '23 18:12 tvillafane