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
I received this error when running mix phx.server for step 5 under the section "Compile Elm via esbuild". I found the same issue on Stack Overflow here https://stackoverflow.com/questions/75221520/invalid-option-in-build-call-watch which indicates that the watch: option was removed starting from esbuild version 0.16.0. The solution I used was to removed the node_modules subfolder in assets/elm and install esbuild via:
I suggest this be added to the README or the instructions updated to use the newer "context" option for esbuild.build() which I admittedly haven't tried yet.
The text was updated successfully, but these errors were encountered:
import{Elm}from"./Main.elm";const$root=document.createElement("div");document.body.appendChild($root);varapp=Elm.Main.init({node: $root,});// Required by esbuild live reloading servernewEventSource('/esbuild').addEventListener('change',()=>location.reload())
I received this error when running
mix phx.server
for step 5 under the section "Compile Elm via esbuild". I found the same issue on Stack Overflow here https://stackoverflow.com/questions/75221520/invalid-option-in-build-call-watch which indicates that thewatch:
option was removed starting from esbuild version 0.16.0. The solution I used was to removed the node_modules subfolder in assets/elm and install esbuild via:I suggest this be added to the README or the instructions updated to use the newer "context" option for esbuild.build() which I admittedly haven't tried yet.
The text was updated successfully, but these errors were encountered: