r/Clojure•
olymk2

Anyone able to give me pointers on this, No such namespace: @sentry I believe its cider related

On every keystroke this pop's up, what is strange is that the project compiles and seems to log to sentry so I am guessing this is a tooling issue, figure sentry is common enough some one may have encountered this or have some idea on why I get this issue.

​

also worth noting this only happens on files with the import.

​

https://preview.redd.it/ozbmsirw46u91.png?width=950&format=png&auto=webp&s=43917b16db0a13ca3262a776440edd6d819fd7b5

Posted Oct 16, 2022, 1:21 PM UTC

32
guywithknife•

That's not a clojure module, but a Javascript module, which means that while it would work in ClojureScript, it won't work in Clojure. You can see in the error message that CIDER is running "Clojure Java REPL", so Javascript module won't be available there.

I don't use CIDER personally, and I've only ever used JS module's through shadow-cljs so I'm not sure what you need to do to fix it.

2
olymk2OP•

Yeah I was aware it was a node module, the projects is a cljs project I guess if its trying to eval in clojure that would explain the error, the file is cljs so I would expect it to be evaluated in the browser, I am using figwheel I keep flip flopping between figwheel and shadow, but I always seem to have jack in issues with shadow (probably me but figwheel generally just works), spent a lot of time on it and asked questions in the past but never got it working quite how I expect.

this does not feel like a figwheel shadow issue and more of a cider issue, I can get around the issue but its a bit of a pain point.

1