Uxp module failed to resolve in react XD plugin

Using the example code and getting this error.

1 Like

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

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

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

2 Likes

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

Yes, kinda desperate even :wink: @saud