NodeMcu or Wemos D1 Mini?

Yes.
The Wemos D1 Mini doesn’t have some of the pins that the NodeMCU has - to save space, otherwise it wouldn’t be ‘mini’.
So, if your NodeMCUcode uses GPIO 9 or 10 then you’ll find that those pins don’t exist on the Wemos. But, if you read this then you’ll see that you shouldn’t be using those pins anyway:

I did a bit of a comparison between various devices in this topic:

Pete.