How to set root path properly
See original GitHub issueAsk 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:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The value seems correct. It looks to me that React Native app is configured to make requests using
package/appX
. Can you checkAppDelegate.m
and make sure it’s not settingpackage/appX
in URL somewhere. You can also do project-wide search forpackage/app
.I’m closing this issue since it seems to be resolved. If there are any more problems with it, feel free to reopen.