nonameShijian opened a new issue, #1695:
URL: https://github.com/apache/cordova-android/issues/1695

   # Bug Report
   
   ## Problem
   When I use TypeScript compiled JavaScript code in Cordova version 10, the 
browser console does not display the source map correctly
   ### What is expected to happen?
   DevTools displays source map correctly
   
   
   ### What does actually happen?
   
   DevTools displays the following content:
   
   DevTools cannot display authored sources, but can debug deployed code.
   Load URL https://localhost/xxx.js.map: Connection error: net:ERR CONNECTION 
REFUSED
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   I used Cordova version 10.0 to create an offline web game, which provides 
the WebViewAssetLoader class to access local web pages using HTTPS URLs.
   My project uses the HTTPS protocol and introduces 
[eruda.js](https://eruda.liriliri.io/) And its source map file, but DevTools 
displays the above error. The other compiled JavaScript files in my project 
used the "inlineSourceMap" compilation option, and DevTools also displayed the 
above error.
   I haven't found a solution to the problem online, but I think it may be 
related to the WebViewAssetLoader class?
   I did not reproduce the same issue in my Electron project that started the 
HTTP server with Express, and I did not encounter this issue in the Egde 
browser on Windows, only in the Cordova project that used the 
WebViewAssetLoader class.
   Similarly, when I changed the startup protocol of the Cordova project to 
HTTP instead of HTTPS, this issue also occurred.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   No commands or code, only the generated JavaScript file was compiled using 
the "inlineSourceMap" compilation option
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Android 12, and Google Webview 118
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Cordova 10.0.0,Android Studio
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to