So, the native module resolution is different in XD, but when using a bundler like webpack or parcel, the module resolution is the same as Node (because the resolution occurs at bundle time, not load time). So if you’re using a webpack config, that shouldn’t be an issue here.
However, if it is relying on the HTML5 Drag and Drop specification, it won’t work in the current version of XD. (We are working on that for a release soon, though.)
This particular error doesn’t tell me a whole lot, but it’s possible that you’re importing or requiring something and it isn’t being resolved correctly. Do you have example code (or actual code, if you’re OK with sharing) that generates this issue?
Also, just so I know – what version of XD and React are you using?