blockly-samples
blockly-samples copied to clipboard
Problem loading source maps in blockly-webpack sample
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:
- Fork/clone/download blockly-webpack sample
npm start- Go to localhost:3000 in Chrome browser
- See above errors in Chrome console
- Open source panel in Chrome debugger
- 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