porscheofficial / cookie-consent-banner

The lightweight and flexible Cookie Consent Banner
MIT License
149 stars 6 forks source link

Error when using with Vite #9

Closed giotiskl closed 2 years ago

giotiskl commented 2 years ago

Node/npm version(s): Node v18.7.0 npm v8.15.0

Package(s) version(s):

 @porscheofficial/cookie-consent-banner-react@3.0.0
 @porscheofficial/cookie-consent-banner@3.0.0

Browser(s) version(s): Brave browser: Version 1.41.100 Chromium: 103.0.5060.134 (Official Build) (x86_64)

Description of the issue/feature: I installed the package with yarn (v1.22.19). I imported it and tried to set up the basic example. I get the following e

Screenshot 2022-08-11 at 13 35 35

rrors in the browser console and banner is not rendered (the rest of the application compiles & renders):

Some example to reproduce the issue:

pboeder commented 2 years ago

Hi @giotiskl! I'll look into this in a few days

pboeder commented 2 years ago

Does the latest version fix your issue @giotiskl (v3.0.1)?