I was building a simple chat app with phoenix and elixir. One of the steps was to import Socket and Presence into the Javascript but I'm pretty sure that step is not working for reasons I have no idea about. I put this line at the top of my app.js
:
import {Socket, Presence} from "phoenix"
When I debugged this line with debugger, I typed Presence
in the console and it gave me a VM1416:1 Uncaught ReferenceError: Presence is not defined.
Is there some setup that I could have missed? maybe with brunch or something?