-
Notifications
You must be signed in to change notification settings - Fork 266
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
[Bug] After a code change while debugging, VSCode cannot find map source. #1773
Comments
Same issue |
Hi, @iklein99, and thanks for reaching us. Could you please clarify which system platform do you use? Also, the version of the extension looks strange, could you clarify it and try to update to the latest. |
Sorry, the React Native Tools version is 1.9.2. I am running on Mac OS 12.3.1 using Expo. Both using an actual iphone and the simulator. Same behavior. |
Same here |
@StevusPrimus where would I do that on a mac build for a mobile device? I'm not using Yaml. Not sure where this would go. |
It needs to go in the created platform specific project. I am not sure if there are comparable flags for Android and iOS (or MacOS). Which platform(s) are you building for? Besides that, did you try |
@StevusPrimus I'm building for mobile (iOS right now). I'm not using yarn, I'm using npm. Here is what my project directory looks like: |
You might want to go through this here #328 . But it is not easy to understand and old ... Basically I would explicitly check on this #328 (comment) . |
And you may want to delete .vscode/.react as well |
I can confirm: "inlineSourceMap": true doesn't work, delete .vscode/.react doesn't work. This problem occurs with all my current projects. Both React Native Tools v1.9.2 and React Native Tools (Preview) v2022.4.1421. And when I create a new project with npx react-native init ExapleProject |
I think is the new versions 1.67.0 and 1.67.1. I downgraded to 1.66.2 and the bug disappeared. |
Just to be clear, that is the version of VSCode, correct? |
yes |
Exactly. This issue is related to vscode version 1.67. I downgraded to 1.66.2 and the bug disappeared too. |
It seems that this bug is related to the latest updates to the |
This issue is already fixed in the nightly build of |
I can confirm, the issue is gone since VSC 1.68.0 for me |
🐛 What is the bug? How can we reproduce it?
appleCloudDocs/Node/raz-hub-mobile/components/DeviceBlock.map'"Expected behavior
When a code change is made, I would expect the refresh to be handled with no error, and break points still working. I am hoping there is an easy config solution. I haven't been able to find out where Expo stores the .js or .map files.
Debug output
"Could not read source map for http://192.168.1.26:8081/components/DeviceBlock.bundle?platform=ios&hot=false&strict=false&dev=true&minify=false&modulesOnly=true&runModule=false&shallow=true: ENOENT: no such file or directory, open '/Users/iklein99/Library/Mobile Documents/com
appleCloudDocs/Node/raz-hub-mobile/components/DeviceBlock.map'"PASTE OUTPUT OF DEBUG CONSOLE (View -> Toggle Debug Console)
Environment
Please tell us about your system and your project:
Running VSCode 1.67.0
React Native Tools extension version: VERSION 17.0.2
Expo 45.0.1
The text was updated successfully, but these errors were encountered: