To resolve this error,
Go to the file <magento2_dir>vendormagentoframeworkInterceptionPluginListGenerator.php
Find
$cacheId = implode(‘|’, $this->scopePriorityScheme) . “|” . $this->cacheId;
Replace with
$cacheId = implode(‘-‘, $this->scopePriorityScheme) . “-” . $this->cacheId;
Re-run the
php bin/magento setup:di:compile
That’s it. It should run now successfully.
I hope this helps you.
Feel free to comment and for any queries. Your feedback is appreciated.
Happy Learning !!
Thank You !!