OdyseeTeam / odysee-frontend

The code that runs odysee.com
https://odysee.com
MIT License
213 stars 68 forks source link

Fix `extras/` dependency problem #764

Closed infinite-persistence closed 1 year ago

infinite-persistence commented 2 years ago

Problem

Reproduce

https://github.com/lbryio/lbry-desktop/commit/9f58c529bc35a8799250d6398491effc76549d23 In this commit, we are just importing an action from another file. It looks normal and even compiles, but if you enter a File Page, it crashes because one distant (and unrelated) selector became undefined.

Potential fixes

infinite-persistence commented 2 years ago

If someone can look at the problem under "Reproduce" and understand/fix the problem, that will be great.

infinite-persistence commented 2 years ago

Probably need this https://github.com/aackerman/circular-dependency-plugin

infinite-persistence commented 1 year ago

ui/analytics.js imports lbryinc, which imports ui/analytics.js and its own selectors.

Repro: use analytics.log in selectors/blocklist