Uxp module failed to resolve in react XD plugin

#1

Using the example code and getting this error.

1 Like
#2

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

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

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?

#4

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
#5

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