Example code for a real time chat system with GraphQL subscriptions
108
stars
52
forks
source link
Error when I add the <Chat /> component in App.jsx from home-page (TypeError: fn is not a function while loading "./Chat" from webpack/container/reference/chat) #11
I followed your video from youtube, but at min: https://youtu.be/E3NHd-PkLrQ?t=2301, when the component is added to App.jsx from home-page I get this error in console: Uncaught (in promise) TypeError: fn is not a function while loading "./Chat" from webpack/container/reference/chat.
I can't find why there is this problem. Can you give me a hint or something? Thank you.
Here is my github with my files: https://github.com/formidabilus/chat-app
If anyone else have this problem, it worked after Jack told me to change in webpack.config.js from home-page:
chat: "chat" to chat: "chat@http://localhost:8080/remoteEntry.js".
I followed your video from youtube, but at min: https://youtu.be/E3NHd-PkLrQ?t=2301, when the component is added to App.jsx from home-page I get this error in console: Uncaught (in promise) TypeError: fn is not a function while loading "./Chat" from webpack/container/reference/chat.
I can't find why there is this problem. Can you give me a hint or something? Thank you. Here is my github with my files: https://github.com/formidabilus/chat-app