This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-29
Channels
- # announcements (15)
- # babashka (17)
- # beginners (66)
- # calva (18)
- # clojure (20)
- # clojure-dev (2)
- # clojure-europe (27)
- # clojure-nl (1)
- # clojure-norway (24)
- # clojure-sweden (5)
- # clojure-uk (4)
- # clr (1)
- # cursive (3)
- # datomic (10)
- # dev-tooling (9)
- # gratitude (1)
- # honeysql (5)
- # hyperfiddle (13)
- # malli (4)
- # music (1)
- # nrepl (1)
- # off-topic (31)
- # polylith (11)
- # portal (6)
- # re-frame (3)
- # reitit (4)
- # releases (1)
- # shadow-cljs (8)
- # squint (4)
- # tools-build (26)
- # vim (1)
- # yamlscript (52)
hi again,
anyone here had luck using the new https://github.com/InboxSDK/InboxSDK lib that supports chrome manifest V3 (https://inboxsdk.github.io/inboxsdk-docs/#quick-start)?
i’ve added @inboxsdk/core
to package.json, and require it like so:
(:require ["@inboxsdk/core" :as inbox-sdk])
when running shadow-cljs i get:
Failed to inspect file .../@inboxsdk/core/inboxsdk.js
Errors encountered while trying to parse file
.../@inboxsdk/core/inboxsdk.js
{:line 1, :column 1, :message "The file could not be parsed as JavaScript."}
RuntimeException: Exception parsing ".../@inboxsdk/core/inboxsdk.js"
...
Caused by:
IllegalArgumentException: Must call rewindTo before calling getSourcePosition for an earlier line (1160185 < 1171698)
i understand the exception is from google closure, but don’t understand how it can be resolved, inboxsdk.js seems like a valid js file to me.ah just looked at the package. you'll need to use webpack for this. shadow-cljs does not support this kind of build setup where the files are webpack specific
how can you tell this package is webpack specific? and any pointers on how to require it via webpack?
and thanks again for immediately jumping on my questions, i really appreciate it!
I'll try doing that, thanks!