blockly-samples icon indicating copy to clipboard operation
blockly-samples copied to clipboard

Problem loading source maps in blockly-webpack sample

Open mark-friedman opened this issue 4 years ago • 0 comments

Category

Examples

Component

blockly-webpack

Describe the bug

Source maps for the blockly-webpack sample don't appear to be working properly. Here are the errors that I'm seeing:

12:33:31.886 DevTools failed to load source map: Could not load content for webpack:///node_modules/blockly/blockly_compressed.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
12:33:31.886 DevTools failed to load source map: Could not load content for webpack:///node_modules/blockly/blocks_compressed.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
12:33:31.887 DevTools failed to load source map: Could not load content for webpack:///node_modules/blockly/javascript_compressed.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

Note that I'm using the blockly-webpack sample by running 'npm start' and going to localhost:3000 in my Chrome browser

To Reproduce

Steps to reproduce the behavior:

  1. Fork/clone/download blockly-webpack sample
  2. npm start
  3. Go to localhost:3000 in Chrome browser
  4. See above errors in Chrome console
  5. Open source panel in Chrome debugger
  6. Try to view any Blockly source file

Expected behavior

I expect to not see the errors shown above and to be able to view and debug Blockly source files.

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Stack Traces

12:33:31.886 DevTools failed to load source map: Could not load content for webpack:///node_modules/blockly/blockly_compressed.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
12:33:31.886 DevTools failed to load source map: Could not load content for webpack:///node_modules/blockly/blocks_compressed.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
12:33:31.887 DevTools failed to load source map: Could not load content for webpack:///node_modules/blockly/javascript_compressed.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

Additional context

mark-friedman avatar Sep 21 '21 17:09 mark-friedman