theleoborges / bouncer

A validation DSL for Clojure & Clojurescript applications
364 stars 38 forks source link

Couldn't load library #58

Closed hawarir closed 7 years ago

hawarir commented 7 years ago

Hello, I've come across some trouble when I'm trying to require bouncer into my project. I'm using leiningen, and currently trying to build a web service using compojure. I had no problem before when firing up the service, but when I tried to require bouncer, leiningen always throws a file not found exception, saying it could not locate bouncer/validator__init.class or bouncer/validator.clj on classpath.

I'm sorry, I'm very new to clojure and its ecosystem, is there something that I miss here? I follow the readme of the project, yet I still can't figure out what's wrong. I notice though that you're using a .cljc file extension instead a .clj file? I tried to understand what it is, but I can't seem to figure out what it is and how could I set up leiningen to look for that file extension as well.

I know this is a silly question, and would probably better be questioned somewhere else. But I've tried to ask in leiningen channel and they said there's nothing to be done in leiningen when dealing with that sort of files. And now I'm left stranded here. 😅

hawarir commented 7 years ago

I've come across a solution, apparently it's because my file to has .clj file extension instead of .cljc, I'm gonna need to look up about it more.