Nexus.Rack() error when importing file referenced in Setup
when using : https://rawgit.com/nexus-js/ui/master/dist/NexusUI.js
however, it does work when using: https://rawgit.com/taylorbf/Musicians-Toolkit/master/dist/NexusUI.js (taken from the Codepen example)
What file should I be using when importing into codepen?
thanks
You should use the file at nexus-js/ui
Can you give more info on the code you are running that throws the error?
I will update the codepens to make sure they are using the correct file
Ahh right.
Not really other than it's the exact same as in the Racks api docs. It works with the file I specified, but not the one, at nexus-js/ui. It renders the svg, but the width/height are NaN.
Here's my codepen https://codepen.io/boonier/pen/QqOgje
Gotcha. In the short term --
-
Make the elements block display (either use a div or give your spans a style of block or inline-block). Short answer here is that I just pushed an update to let the widgets inherit their width/height from CSS, but of course a span has no width/height style ... so this will need to be addressed in a push soon.
-
In addition to that, though, something is causing NexusUI to not run in Codepen. Not sure what that is. So develop in your own environment if you can in the meantime. I'll try to sort out what's going on.