Vincenius / bsky-embed

A web-component to easily embed a bluesky feed.
50 stars 7 forks source link

Uncaught SyntaxError: redeclaration of const i #28

Open martymi opened 6 days ago

martymi commented 6 days ago

Hello, really appreciate your efforts on bsky-embed! We are trying this on our wordpress site and I am randomly getting conflicts that have this error. For instance this interferes with the i declaration in GeneratePress premium theme

example conflicting js @ https://nuarrow.com/wp-content/plugins/gp-premium/menu-plus/functions/js/offside.min.js

What's strange is this doesn't occur on every load, it's like every 2-3 loads. This leads to the embed working about half the time, the other half it doesn't work and presents a console error like this.

martymi commented 6 days ago

Another example:

Uncaught SyntaxError: redeclaration of var X1
    <anonymous> https://cdn.jsdelivr.net/npm/bsky-embed/dist/bsky-embed.es.js:1
bsky-embed.es.js:1:1