grych / drab

Remote controlled frontend framework for Phoenix.

Home Page:https://tg.pl/drab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

this.Socket is not a constructor

jung-hunsoo opened this issue · comments

Environment

  • Drab 0.10.1
  • Brunch

Problem

  • this.Socket is not a constructor occurs even I followed the fix in docs[https://hexdocs.pm/drab/Drab.Client.html#module-custom-socket-constructor-webpack-require-is-not-defined-fix].

Related issues

In the console, window.__socket returns function e(t){.....

drab_error

Hmm... I followed the section 7 of manual installation.

That's opposite to the Drab.Client doc.

For me, the latter is working properly with brunch.

Hi @jung-hunsoo,
Do you still have a problem with this?

@grych It's working properly now. There's no additional configuration required to use Drab with Brunch.