• I tried changing the pin designation, but i get no change at all.

    When i change the CS pin to pin 5 i get no "sd card" error except 'connection lost' in the terminal window.

    i tried every possible pin combination. with and without the Nodemcu.D..

    my wiring is correct because i have used the sd card in the arduino IDE and that works just fine.