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?
console.log(Presence)right after the import. I'm not sure if this is easily debuggagble like what you mentioned here due to how the assets are compiled. - Paweł Dawczakimport * as Phoenix from "phoenix"and usePhoenix.Presence- Ankanna