Skip to content
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

Pagerjs not working with require #221

Closed
karenpommeroy opened this issue May 5, 2016 · 1 comment
Closed

Pagerjs not working with require #221

karenpommeroy opened this issue May 5, 2016 · 1 comment

Comments

@karenpommeroy
Copy link

No matter what I do pager is always empty (even though I can see that pager.min,js is grabbed from the server):

equire.config({
paths: {
"jquery": "lib/jquery/jquery-2.2.0.min",
"pagerjs": "lib/pagerjs/pager",
"knockout": "lib/knockout/knockout-3.4.0",
},
shim : {
"pagerjs": ["jquery", "knockout"]
},

waitSeconds: 30

});

require([
"pagerjs"
], function(pg){

// Here pg is awlays undefined

});

@Olliebaba
Copy link

Have you looked at how it's configured in the pagerjs repo? Looks like you don't need to shim pager.

@DKhalil DKhalil closed this as completed May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants