mglaman / wasm-drupal

Drupal in WASM
https://wasm-drupal.mglaman.dev/
MIT License
22 stars 2 forks source link

Firefox show NS_ERROR_CORRUPTED_CONTENT for some CSS/JS assets #32

Closed mglaman closed 2 days ago

mglaman commented 4 days ago

In Firefox there is an issue with serving some JS files, which come over NS_ERROR_CORRUPTED_CONTENT.

Screenshot 2024-07-04 at 11 47 42 AM
mglaman commented 3 days ago

https://github.com/mglaman/wasm-drupal/commit/d6fe4849e1920fab0b55acccaa57ae340719d95b may have fixed this. The export-ignore had the vendor JS assets. I don't know why it would work in Chrome.

gitressa commented 3 days ago

That certainly fixed the problem in Firefox for me. Those errors are gone from the console, and the administration Toolbar works as expected.

I get these warnings in the console, after a few seconds. But the fonts are loaded (Metropolis, and Lora) and work great, so the font warnings are probably a minor thing. The *.js.map files I don't know about though ... :

The resource at “https://wasm-drupal.mglaman.dev/cgi/drupal/core/themes/olivero/fonts/metropolis/Metropolis-Regular.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. 1

The resource at “https://wasm-drupal.mglaman.dev/cgi/drupal/core/themes/olivero/fonts/metropolis/Metropolis-SemiBold.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. 1

The resource at “https://wasm-drupal.mglaman.dev/cgi/drupal/core/themes/olivero/fonts/metropolis/Metropolis-Bold.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. 1

The resource at “https://wasm-drupal.mglaman.dev/cgi/drupal/core/themes/olivero/fonts/lora/lora-v14-latin-regular.woff2” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. 1

Source map error: Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Resource URL: https://wasm-drupal.mglaman.dev/cgi/drupal/core/assets/vendor/once/once.min.js?v=1.0.1
Source Map URL: once.min.js.map

Source map error: Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Resource URL: https://wasm-drupal.mglaman.dev/cgi/drupal/core/assets/vendor/backbone/backbone-min.js?v=1.6.0
Source Map URL: backbone-min.js.map

Source map error: Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Resource URL: https://wasm-drupal.mglaman.dev/cgi/drupal/core/assets/vendor/tabbable/index.umd.min.js?v=6.2.0
Source Map URL: index.umd.min.js.map

I get logged out after a minute or so, but that is already reported in #7.

So I think this issue can be set to Fixed, since the serious NS_ERROR_CORRUPTED_CONTENT error is now taken care of.

mglaman commented 2 days ago

Thank you for confirming!