Repository to simulate: https://github.com/seg-leonelsanches/leos-guitar-shop-nextjs
Consent Manager version: 5.8.1
Analytics.js version: 1.52.0
Node.js version: 18.16.0
Use yarn dev to initialize the project locally. If open within a Chrome regular tab, it works normally. If open with Incognito, the following is shown:

I debugged the sources and it seems that, in analytics.js file from Consent Manager ESM, we don't have wd.analytics set properly.