You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the esptool-js library is imported as a module using unpkg with the ES module query parameter (https://unpkg.com/esptool-js/lib/index.js?module), the service appends ?module to the import statement, including for JSON files.
However, the service returns an error stating, module mode is available only for JavaScript and HTML files. This issue occurs when the ESPLoader library attempts to import a JSON file as part of its module graph.
Unpkg should either serve JSON files without appending the ?module query parameter or properly handle JSON imports when in ES module mode.
The text was updated successfully, but these errors were encountered:
When I use the esptool-js library is imported as a module using unpkg with the ES module query parameter (
https://unpkg.com/esptool-js/lib/index.js?module
), the service appends?module
to the import statement, including for JSON files.For instance, these URLs are affected:
However, the service returns an error stating, module mode is available only for JavaScript and HTML files. This issue occurs when the ESPLoader library attempts to import a JSON file as part of its module graph.
Unpkg should either serve JSON files without appending the
?module
query parameter or properly handle JSON imports when in ES module mode.The text was updated successfully, but these errors were encountered: