Problem with providing first liquidity

I get 'execution reverted: TransferHelper: TRANSFER_FROM_FAILED' in the dev tools when I try to add liquidity on Pancakeswap. Can someone point out what can be an issue?

"TRANSFER_FROM_FAILED" means that the contract you are using is trying to send token X to itself. If the contract has no approval to do so the transfer will fail.Try using the approve function on the tokens you are trying to use liquidity. the spender is the contract (pancake router) and type whatever amout in you want (in wei)