Can't use datascript at the same time in popup and background
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the shadow example from commit e66dc616, starting with the datascript.core/create-conn usage in background.core and popup.core. Check why the popup reports datascript as undefined when both entry points use it; done means either both contexts work together or the supported limitation and required setup are documented.
Written by the indexing model from the issue text.
Description
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.
https://github.com/yqrashawn/chromex/commit/e66dc616
Is this the supposed way and I misunderstand some concepts in chrome extension or shadow-cljs?
- Dominant language
- Clojure
- Stars
- 413
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from binaryage/chromex
-
Manifest v2 vs v3 Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
All issues in binaryage/chromex
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
.Team/Metabot Priority:P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
needs triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
scalar-labs/scalar-jepsen#222 · 1 comment ·