Open joweo opened 2 years ago
I also experienced the same problem. Asked on discord but no answers.
Any news on this? It's really hampering our progress.
I wonder if somethings with Chrome itself. Because we tried to checkout the very old source code, and tried older package versions, etc.. It still doesn't work which is not making any sense.
I can confirm this issue fixed on my machine, source map now back to normal. Not sure how. Possibly, Chrome updates fixed this problem.
Issue Description
Since about March 10th 2022 debugging in chrome and VS Code fails as there is no more valid source mapping for the .vue files.
The line number of breakpoints of the original .vue file is correct but the .vue file is not opened with an error hint that the source map coverage is n/a. But if you add the "debugger" command in a method and the debugger halts the .vue file is opened correclty (sometimes)?! Also when a hot deploy is committed you get the correct .vue file.
This error on debugging occurs in the latest package version(s) and the demo project.
The following example program is an official demo project from nativescript:
In the call stack, you can see onItemTab method and the reference to Items.vue:93
Versions node.js 16.4.2 nativescript 8.2.3 npm 8.5.0 java openJdk 11
package.json:
ns doctor output ✔ Getting environment information
No issues were detected. ✔ Your ANDROID_HOME environment variable is set and points to correct directory. ✔ Your adb from the Android SDK is correctly installed. ✔ The Android SDK is installed. ✔ A compatible Android SDK for compilation is found. ✔ Javac is installed and is configured properly. ✔ The Java Development Kit (JDK) is installed and is configured properly. ✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure. ✔ Getting NativeScript components versions information... ✔ Component nativescript has 8.2.3 version and is up to date. ✔ Component @nativescript/core has 8.2.1 version and is up to date. ✖ Component @nativescript/ios is not installed. ✔ Component @nativescript/android has 8.2.2 version and is up to date.
Reproduction
Reproduce this issue
With chrome dev tools
We have this issue on all platforms (windows+android and mac+ios)
With Visual Studio Code
Relevant log output (if applicable)
Environment
No response
Please accept these terms