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
FF: Mozilla Firefox 50.0
Svelte: svelte-cli version 1.0.2
Command: svelte compile --format iife HelloWorld.html > HelloWorld.js
Background
After seeing your project on Hacker News, I decided to give it a shot. I use Firefox on Arch Linux, and I was surprised when the "Hello world" demo didn't work. To test it wasn't just my system, I tried it on chromium, and it worked fine there. Are you not supporting Firefox? (it is definitely a "legacy" browser)
Error
The problem is in the generated HelloWorld.js. It is located in var HelloWorld -> function HelloWorld -> function dispatchObservers -> for ( const key in group ). The error message reads SyntaxError: missing = in const declaration.
I hope this is just some obvious issue on my half, and not a lack of Firefox support...
The text was updated successfully, but these errors were encountered:
Ah, whoops! ES2015 habits are hard to break – Svelte is supposed to generate ES5 code but my fingers have forgotten how to type var. Should be a nice easy fix 😀
The real trick will be implementing automated tests to stop this from happening again.
FF:
Mozilla Firefox 50.0
Svelte:
svelte-cli version 1.0.2
Command:
svelte compile --format iife HelloWorld.html > HelloWorld.js
Background
After seeing your project on Hacker News, I decided to give it a shot. I use Firefox on Arch Linux, and I was surprised when the "Hello world" demo didn't work. To test it wasn't just my system, I tried it on chromium, and it worked fine there. Are you not supporting Firefox? (it is definitely a "legacy" browser)
Error
The problem is in the generated
HelloWorld.js
. It is located invar HelloWorld
->function HelloWorld
->function dispatchObservers
->for ( const key in group )
. The error message readsSyntaxError: missing = in const declaration
.I hope this is just some obvious issue on my half, and not a lack of Firefox support...
The text was updated successfully, but these errors were encountered: