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
Elm-watch succeeds in compiling, but in browser shows "Uncaught ReferenceError: _Platform_enqueueEffects is not defined" error and fails to start / validate elm/core version is recent enough
#101
Open
casperschipper opened this issue
Aug 26, 2024
· 4 comments
One of my Elm apps shows the following error in the browser console when I try to use elm-watch:
Uncaught ReferenceError: _Platform_enqueueEffects is not defined _Platform_initialize http://127.0.0.1:8080/elm.js:4788 _Browser_element http://127.0.0.1:8080/elm.js:6978 F4 http://127.0.0.1:8080/elm.js:2892 init http://127.0.0.1:8080/elm.js:5364 <anonymous> http://127.0.0.1:8080/:22
The widget shows ❓ and reports "It looks like no Elm apps were initialized by elm-watch. Check the console in the browser developer tools to see potential errors!"
Elm-watch.json is as follows: { "targets": { "My target name": { "inputs": [ "src/Main.elm" ], "output": "elm.js" } } }
Elm-watch itself reports a success compilation, however the browser shows the above error. I have tried a "clean slate" by removing the complete elm-watch folder and even elm-stuff, but the error keeps happening. As far as I can see, I haven't done anything unusual, it is a very simple Browser.element app. Building the app with elm-watch make works fine.
My other apps also run on elm-watch without problems. So I am somewhat mystified.
Anyhow, thank you for making elm-watch, it has been very useful despite this error.
The text was updated successfully, but these errors were encountered:
You need a recent enough elm/core version. Otherwise some regexes don’t match. Perfect time to update, though!
elm-watch already parses elm.json, so while doing that I could also validate that you have a recent enough version of elm/core and give a specific error message if this happens. I’m keeping the issue open for that!
lydell
changed the title
Elm-watch succeeds in compiling, but in browser shows "Uncaught ReferenceError: _Platform_enqueueEffects is not defined" error and fails to start
Elm-watch succeeds in compiling, but in browser shows "Uncaught ReferenceError: _Platform_enqueueEffects is not defined" error and fails to start / validate elm/core version is recent enough
Aug 26, 2024
One of my Elm apps shows the following error in the browser console when I try to use elm-watch:
Uncaught ReferenceError: _Platform_enqueueEffects is not defined _Platform_initialize http://127.0.0.1:8080/elm.js:4788 _Browser_element http://127.0.0.1:8080/elm.js:6978 F4 http://127.0.0.1:8080/elm.js:2892 init http://127.0.0.1:8080/elm.js:5364 <anonymous> http://127.0.0.1:8080/:22
The widget shows ❓ and reports "It looks like no Elm apps were initialized by elm-watch. Check the console in the browser developer tools to see potential errors!"
Elm-watch.json is as follows:
{ "targets": { "My target name": { "inputs": [ "src/Main.elm" ], "output": "elm.js" } } }
Elm-watch itself reports a success compilation, however the browser shows the above error. I have tried a "clean slate" by removing the complete elm-watch folder and even elm-stuff, but the error keeps happening. As far as I can see, I haven't done anything unusual, it is a very simple Browser.element app. Building the app with elm-watch make works fine.
My other apps also run on elm-watch without problems. So I am somewhat mystified.
Anyhow, thank you for making elm-watch, it has been very useful despite this error.
The text was updated successfully, but these errors were encountered: