Skip to content
New issue

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

Help on expo web metro bundling #72

Open
hyochan opened this issue Jul 16, 2023 · 1 comment
Open

Help on expo web metro bundling #72

hyochan opened this issue Jul 16, 2023 · 1 comment

Comments

@hyochan
Copy link

hyochan commented Jul 16, 2023

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 expo/expo#23412 (comment)

May I get help on the issue?

@tvillafane
Copy link

Anyone feel like addressing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants