-
Notifications
You must be signed in to change notification settings - Fork 304
Sometimes components are in a mixed order #539
Comments
what do the errors look like? can you show some debug logs? https://github.com/component/guide/blob/master/component/troubleshooting.md i have an issue in the resolver where sometimes things will be out of order, but it only happens 1/100 times. not sure what's going on. |
Logs here - https://gist.github.com/simonsmith/10501679 Showing the difference when I have no components installed vs when they are already installed. I don't get an error as such just that sometimes the file is built out of order and my unit tests fail. So far it happens every time when the components have to be installed. After they have been installed the tests pass 90% of the time. Edit: I should probably do a similar test with the component CLI, just to clarify if it's my code. |
@jonathanong I set up a similar test but instead used the component CLI. Running this command passed the test every time regardless of installing components or them being there already. Could I be using the libraries incorrectly? I've tried to follow the docs as closely as possible. |
not sure. i didn't see anything blatantly wrong with your code. |
Hmm okay. I'll go back to stepping through the code and see if I can spot anything obvious. Thanks for casting your eyes over it :) |
@jonathanong, I'm wondering if this is not because of this issue componentjs/builder2.js#29. I know the issue was raised for CSS but the root cause is possibly generator related? @simonsmith, I'm wondering if the command line version on your platform eliminates using generators ( |
close due to componentjs/builder2.js#29 (comment) |
I'm seeing some odd behaviour when using component inside node. I'm working on a Grunt plugin that uses Component to build SuitCSS components.
I'm using component-resolver, component-build and component-flatten to handle everything.
To validate my plugin works I built SuitCSS using component on the CLI and then compare that output with the output my plugin produces. What is odd is that it fails intermittently.
All this is happening in this function here. Would it be possible to clarify if I'm using the APIs correctly and perhaps help me understand why this doesn't reliably work?
Thanks so much
The text was updated successfully, but these errors were encountered: