Fixed
CRITICAL: Restored
type="module"attribute on data-star script tagPrevious commit (
fcd1235) incorrectly removed the module typeThis caused browser error:
SyntaxError: Unexpected keyword 'export'Data-star requires ES6 module loading to work correctly
Technical Details
The Problem
When the data-star library is loaded without
type="module":<!-- BROKEN (alpha.12 deployed version) --> <script src="https://cdn.jsdelivr.net/gh/starfederation/datastar@1.0.0-RC.8/bundles/datastar.js"></script>The browser tries to execute the ES6 module code as a regular script, causing:
[Error] SyntaxError: Unexpected keyword 'export' (anonymous function) (datastar.js:8)The Fix
Correctly load data-star as an ES6 module:
<!-- FIXED (alpha.13) --> <script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/datastar@1.0.0-RC.8/bundles/datastar.js"></script>All three script tags in the UI now properly use
type="module":- Data-star library load
- SSE initialization script
- Helper functions script
Migration Notes
Critical fix - If you deployed alpha.12, you must upgrade to alpha.13 immediately. The UI is completely broken in alpha.12.