esr360 / One-Nexus

ONE-NEXUS v4 IS IN ACTIVE DEVELOPMENT - USE WITH CAUTION UNTIL THEN - One-Nexus is a toolkit for architecting and constructing modular front-end user-interfaces
http://onenexus.io/
MIT License
102 stars 9 forks source link

theme.json unreadable #18

Closed rowbe closed 6 years ago

rowbe commented 6 years ago

"Line 8: File to import not found or unreadable: ui/themes/One-Nexus/theme.json."

After successfully installing and double-checking all dependencies locally, I receive the error message above when I run SASS watch command. Someone please help a bro.

esr360 commented 6 years ago

Are you using Ruby Sass, not Node-Sass or LibSass?

Also, have you installed the sass-json-vars gem?

Finally, are you using a specific release/version of One-Nexus, or just the master branch?

I'm in the middle up updating One-Nexus to be compatible with Node-Sass, when this happens you won't need to install the above sass-json-vars gem (will still be a few days before the release).

rowbe commented 6 years ago

@esr360 I have Ruby SASS. I have sass-json-vars installed. I cloned the Master branch (git clone https://github.com/esr360/One-Nexus.git).

esr360 commented 6 years ago

The update will be complete in 3-6 days.

Are you using the built in grunt tools to build One-Nexus, or are you using some other method?

The error means that the sass compiler isn't using sass-json-vars, if you are just runing the normal sass watch command from the terminal, you will need to add -r sass-json-vars, e.g:

sass /PATH/TO/app.scss -r sass-json-vars - from the bottom of this page: https://github.com/vigetlabs/sass-json-vars

rowbe commented 6 years ago

I'm only using built-in tools, still no success with sass /PATH/TO/app.scss -r sass-json-vars.

rowbe commented 6 years ago

"My code doesn't work, but I don't know why..." (20 odd tries later): "My code works, but I don't know why..."

Everything works now, after restarting the whole process using an older copy. Thanks a bunch!

esr360 commented 6 years ago

Hmmm, very odd indeed! If you do figure out what was wrong be sure to let me know so I can update the docs! Cheers