Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cursive cannot resolve "js/require" in CLJS

I'm trying to get started learning cljs by prototyping a react native app with expo. I set up a project with a Leiningen template "lein new expo". I installed cursive as well and added a configuration to connect it to the nRepl of my project.

The issue is that Cursive seems unable to resolve basic things. My basic hello world example is filled with "cannot resolve js/require". I must be missing some basic configuration for Cursive to warn about build in CLJS functions. Unfortunately I don't see anything about it in the documentation.

like image 981
imagio Avatar asked Aug 18 '26 01:08

imagio


1 Answers

I've seen Cursive resolve when there is JavaScript source it can parse in order to build an index. But, for many JavaScript interop calls, it is fairly normal for it to not resolve things.

With respect to your particular js/require is marked as unresolved for me as well.

like image 121
Mike Fikes Avatar answered Aug 20 '26 02:08

Mike Fikes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!