Uxp module failed to resolve in react XD plugin

Using the example code and getting this error.

@saud you will have to add XD specific modules like application to your webpack config like:

externals: {
        scenegraph: "scenegraph",
        application: "application"
 }

Thanks a ton!
I’m also trying to add the package (https://github.com/socketio/socket.io-client), do I have to do the same if i want to include that?

No, npm packages would be considered as “externals” however, some packages might not work on XD. In that case, please use WebSocket instead

Got it, thank you again.
I got the socket.io-client working if anyone is looking.

Yes, kinda desperate even :wink: @saud

Can u provide your server and client code? I can’t make socket-io-client working on UXP, it cannot connect to the server with “xhr polling error”