Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use datascript at the same time in popup and background #20

Open
yqrashawn opened this issue Nov 21, 2020 · 1 comment
Open

Can't use datascript at the same time in popup and background #20

yqrashawn opened this issue Nov 21, 2020 · 1 comment

Comments

@yqrashawn
Copy link

There's a datascript not defined error in popup page if I put datascript.core/create-conn in both background.core and popup.core.
Once I deleted the datascript code in background.core, the error went away and datascript works in popup.

Can be reproduced in shadow example as this commit.

yqrashawn@e66dc616

Is this the supposed way and I misunderstand some concepts in chrome extension or shadow-cljs?

@qazwsxpawel
Copy link

I've been seeing similar behaviour with some other libs/requires too. E.g. the storage api or reagent. Is this some limitation for chrome extensions in general or maybe there is something in shadow build config that could solve this?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants