-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loader error message #25
Comments
@arkenidar sorry for the slow response to this - what the error means is that the So to set things up, you'd need to have a <script src='ractive.js'></script>
<script src='ractive-load.js'></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.2/moment.min.js'></script>
<script>
Ractive.load( 'MyComponent.html' ).then( function ( MyComponent ) {
/* MyComponent can now call require('moment') */
}).catch( function ( err ) {
/* ... */
});
</script> With <script src='ractive.js'></script>
<script src='ractive-load.js'></script>
<script src='backbone.js'></script>
<script>
Ractive.load.modules.backbone = Backbone;
Ractive.load( 'MyComponent.html' ).then( function ( MyComponent ) {
/* MyComponent can now call require('backbone') */
}).catch( function ( err ) {
/* ... */
});
</script> Hope this clarifies things. |
Of course, I should add that if you're just using components internally, and they don't need to be used outside your app, there's no need to do the |
thanks 2015-04-27 17:04 GMT+02:00 Rich Harris [email protected]:
|
"Error: Ractive.load() error: Could not find dependency "marked". It should be exposed as Ractive.load.modules.marked or window.marked"
I am unable to find what this means. I was never unable to get the loader working with the Comments example (out of the gist)
The text was updated successfully, but these errors were encountered: