question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set root path properly

See original GitHub issue

Ask your Question

Webpack builds successfully, but cannot GET the bundle, because its requesting it from a bad route. I think its important to mention that I’m using monorepo. Folder structure:

root/
      packages/
              app1
                     build/platform/index.bundle
                     webpack.config.js
              app2
                     build/platform/index.bundle
                     webpack.config.js

The webpack is trying to get the bundle form the following path:

Fetching from worker {
  url: 'http://localhost:55185/packages/app1index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=app1',
  method: 'GET',
  body: null
} 

Route GET:/packages/app1/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=app1 not found 

When I request http://localhost:55185/index.bundle it resolves correctly.

My question is how can I change /packages/app1/index.bundle to index.bundle when fetching the bundle?

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zamotanycommented, Aug 17, 2021

The value seems correct. It looks to me that React Native app is configured to make requests using package/appX. Can you check AppDelegate.m and make sure it’s not setting package/appX in URL somewhere. You can also do project-wide search for package/app.

0reactions
zamotanycommented, Aug 18, 2021

I’m closing this issue since it seems to be resolved. If there are any more problems with it, feel free to reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting the root PATH for su [duplicate] - Unix Stack Exchange
When I am changing (on my debian box) to the root user with su , apparently the PATH is not correctly set. Some...
Read more >
Setting the PATH so it applies to all users, including root/sudo
You should set it in /etc/environment . Try sudo YOUR_TEXT_EDITOR /etc/environment (make sure to create a backup first). For more information: ...
Read more >
4.1 Setting the Environment Variables - ROOT - CERN
ROOT has a set of global variables that apply to the session. For example, gDirectory always holds the current directory, and gStyle holds...
Read more >
Adding a Directory to the Path - Troubleshooters.Com
The best place to add a directory to the path of a single user is to modify that user's .bash_profile file. To add...
Read more >
chroot - Change the root directory for the execution of a ... - IBM
Press the END OF FILE (Crtl-D) key sequence or type exit to end the child shell and go back to where you were...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found