How can I import a private key into a pruned node? I am trying to restore my Bitcoin Core wallet, but I only have the private key and passphrase, I don't have a wallet.dat file.
I tried using
importprivkey privatekey xxxxxxxxxxxxxxxxxxxx

which gave me the error Rescan is disabled when blocks are pruned (code -4).
How can I import the key?
I think your choices are

Restart your Bitcore-core node with adequate diskspace and pruning mode disabled, wait for it to sync all over again and then use importprivkey or
Import or sweep your private key into a different wallet such as Electrum. Optionally transfer the money back to your Bitcoin-core wallet. This might be quicker but you won't get the full transaction history back into Bitcoin-core