minor: refer from npm packages not recognized

6 views
Skip to first unread message

timothypratley

unread,
Jan 6, 2022, 3:41:56 PM1/6/22
to Cursive
In CLJS sometimes you need to require from node packages.
The way you do this is:

(ns my.ns
  (:require ["firebase/auth" :refer [getAuth]]))

Where the "namespace" is a string instead of a symbol.
This is valid and compiles, but cursive does not recognize `getAuth` as a defined symbol, and so leaves yellow marks all over the place.
If it's easy enough to change the parsing rule to work with strings and symbols in the namespace position, that would be very nice! :)


Colin Fleming

unread,
Jan 6, 2022, 3:52:31 PM1/6/22
to Cursive Group
Yes, this is long overdue, sorry. I'm planning to do this as part of a change I'm making at the moment.
--
You received this message because you are subscribed to the Google Groups "Cursive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cursive+u...@googlegroups.com.

Timothy Pratley

unread,
Jan 6, 2022, 5:55:34 PM1/6/22
to cur...@googlegroups.com
Great! Thank you :)

Reply all
Reply to author
Forward
0 new messages