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

Bundling failure #18

Open
jwilliamson-qb opened this issue May 1, 2019 · 0 comments
Open

Bundling failure #18

jwilliamson-qb opened this issue May 1, 2019 · 0 comments

Comments

@jwilliamson-qb
Copy link

Hello! I'm having some issues adding this polyfill to my app. We have an ejected Expo app that is using unimodules.

Steps to Reproduce:

npm install @expo/browser-polyfill --save

In my file:

import '@expo/browser-polyfill';

error: bundling failed: Error: Unable to resolve module expo from /Users/jwilliamson/Developer/QBMobile/node_modules/@expo/browser-polyfill/src/DOM/HTMLImageElement.js: Module expo does not exist in the Haste module map

This might be related to facebook/react-native#4968
To resolve try the following:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache.
  4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.
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

1 participant