figwheel-main

figwheel-main http://figwheel.org
Franco Gasperino 2021-03-15T17:23:49.020700Z

Good morning. I'm new to the community and have a question regarding the use of :extra-main-files and the repl if anyone wishes to give a bit of advice

Franco Gasperino 2021-03-15T17:30:55.022800Z

i've created an additional file + associated namespace in the project watch-dirs, added the appropriate :extra-main-files entry, and can see the endpoint at http://localhost:9500/figwheel-extra-main/<id> as the documentation indicates

Franco Gasperino 2021-03-15T17:33:43.025400Z

however, i'm unable to access that namespace in the repl unless i require it into the :main entry point file. a => (in-ns 'my.additional.ns) followed by a simple eval of a test function in that namespace results in a TypeError: my.additional.ns is undefined

Franco Gasperino 2021-03-15T17:35:02.026300Z

any tip to having the repl honor the :extra-mains-file build?

Franco Gasperino 2021-03-15T18:18:38.027800Z

• Update - i believe i figured it out. The session focus needs to switch. I was able to use the new namespace via repl in-ns by first opening the endpoint in the browser, refreshing, and then interacting with the namespace in the repl