Question: I have upgraded from Magento CE 2.3.3 to 2.3.4 and on the checkout I get this error: [![kout](https://i.stack.imgur.com/hPmuE.png)](https://i.stack.imgur.com/hPmuE.png)

Has anyone had this problem before?

Theres nothing in the logs and I am on developer mode with debugging enabled.

Answer: 
Create custom class & copy required functionality of vendor/magento/module-checkout/model/Session.php class file of Magento 2.3.3 version in it.

Then, use that custom class in Magento 2.3.4 version where you have added dependency of Magento\Checkout\Model\Session class file.

Or you can use '\Magento\Checkout\Model\Cart' class file to get all visible items of cart.

> 
> **$this->cart->getCheckoutSession()->getQuote()->getAllVisibleItems();**
> 
> 
>
The reason is Magento [bug](https://github.com/magento/magento2/issues/26786). It might be fixed in some Magento release

You could change the way you receive `Quote` in your module
See [this](https://magento.stackexchange.com/a/314014) approach

```
$session = $objectManager->get('\Magento\Checkout\Model\Session');
$quote_repository = $objectManager->get('\Magento\Quote\Api\CartRepositoryInterface');
$qid = $session->getQuoteId();
$quote = $quote_repository->get($qid);      
// retrieve quote items
$items = $quote->getAllItems();

```