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:
node install -D esbuild@0.15.18
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.
I received this error when running
mix phx.serverfor 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.