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

Running bundle visualizer in Expo project using Expo Router #123

Open
RobertPetricevic opened this issue Oct 4, 2023 · 4 comments
Open

Comments

@RobertPetricevic
Copy link

I'm getting the following error when trying to run bundle visualizer:

Error: The resource /Users/............../expo-router/entry was not found.

Has anyone run on this issue before?

@flexbox
Copy link

flexbox commented Nov 13, 2023

confirmed here as well

❯ npx react-native-bundle-visualizer

Generating bundle...
                Welcome to Metro v0.76.8
              Fast - Scalable - Integrated


Error: The resource `/Users/.../expo-router/entry` was not found.
    at /Users/.../node_modules/metro/src/IncrementalBundler.js:276:24

=== error === Error: Command failed with exit code 1:

I think it's the same as #93 we need to change the path of the sourcemap somehow

@mojavad
Copy link

mojavad commented Dec 18, 2023

I have a solution to this - will update here briefly.

@mojavad
Copy link

mojavad commented Dec 28, 2023

@flexbox @RobertPetricevic

  1. Run npx expo export -p web --dump-sourcemap in your project. This will create a dist directory with your exported project along with the sourcemaps.
  2. Run npx source-map-explorer dist/**/*.js to get the graphic representation of your sourcemaps.

@flexbox
Copy link

flexbox commented Jan 13, 2024

@mojavad Nice hack! thanks for sharing

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

3 participants