-
Notifications
You must be signed in to change notification settings - Fork 111
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
RequireJS - Errors after updating from 0.2.6 to 0.2.9 via bower #40
Comments
First, 0.2.9 is still alpha. 0.2.8 should be stable. |
Using requirejs to manage modules, I got following structure and correlative files. main.js requirejs.config({
"paths": {
...
'datetimepicker': 'bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min',
'myModule': 'path/to/myModule',
...
},
shim: {
'wysihtml5': ['handlebars', 'bootstrap'],
} myModule.js define(['bootstrap', 'wysihtml5', 'datetimepicker'], function(){
...
var _editor = $(element).wysihtml5();
var editor = _editor.data('wysihtml5').editor;
...
}); Even if I use 0.2.9 stable or 0.3.0 alpha, the precedent exception is there, so I've to specific the version of 0.2.8 to avoid that. |
I will have a look, how to add amd support. |
Please have a look at the latest v0.3.0 version. RequireJS support is now built in. If you want to add requirejs support to the maintenance versions 0.2.x you are on your own. |
I don't seem to be able to figure out how to use this v.0.3.0 version with bower and RequireJS support.
to my paths and but when i try to initialize a wysiwyg instance i get:
Also, i use github.com/yeoman/grunt-bower-requirejs to automatically include the bower dependencies in requirejs config.
and not
|
Have you seen the version in examples of the 0.3 branch? https://github.com/Waxolunist/bootstrap3-wysihtml5-bower/tree/v0.3.0-wip/examples It uses the amd-versions in the folder amd. I also updated the readme and added examples for requirejs to it. The automatic include is because the all-inclusive version is not the main of this package. |
ah yes, i think it works now, sorry about that |
no problem |
With 0.2.6 everything worked just fine, but errors below come with 0.2.9.
Anyone knows how to fix them?
The text was updated successfully, but these errors were encountered: