Fork me on GitHub
#cljsjs
<
2017-04-17
>
azeem00:04:00

hey guys! i'm trying to use semantic-ui-react package in a project. I am able to use the components in a fresh live-reload setup as i add the require and create the components.. but when i refresh the page. i get an error saying Uncaught TypeError: Cannot read property 'Component' of undefined i've tracked it down to a file in semantic-ui where it seems to be referring to react Component class.. but not sure what's causing this in my clojurescript setup

azeem00:04:14

anyone experienced similar issues?

azeem23:04:03

@souenzzo https://github.com/cljsjs/packages/wiki/Non-JS-Assets if you’re using less or sass you can import css from the jar file

souenzzo23:04:20

I need to use sass or less? I Will not use any of these..

azeem23:04:25

this is how i’m importing css from clsjsjs packages. not sure if there’s another way.. i guess you can write a boot task to fetch the file from classpath and write it out. clojurescript noob here. so not sure about the details

souenzzo23:04:30

I Will dig into boot. Tks