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

Jquery 1.7.1 define() not found or duplicates found #31

Closed
Filirom1 opened this issue Nov 26, 2011 · 3 comments
Closed

Jquery 1.7.1 define() not found or duplicates found #31

Filirom1 opened this issue Nov 26, 2011 · 3 comments
Assignees
Milestone

Comments

@Filirom1
Copy link

Hi,

I just tried curl.js.
I change the apiName to 'require' in order to apply it on my requireJs project.

Unfortunately I have a problem with jQuery 1.7.1, which works fine with require.js

Actually I have this error :

Uncaught Error: define() not found or duplicates found: jquery-1.7.1.min.js

You can reproduce it easily with this gist

https://gist.github.com/1394883

Am I doing something wrong ?

Cheers
Romain

@Filirom1
Copy link
Author

Ok I found the solution,

We just need to add this line before loading jQuery :

define.amd.jQuery = true

The answer was in the jQuery sources.

@ghost ghost assigned unscriptable Nov 26, 2011
@unscriptable
Copy link
Member

I added define.amd.jQuery = true; to curl.js in the dev054 branch. If you have a moment, please test that branch. Thanks!

@Filirom1
Copy link
Author

Perfect, it works well !

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

2 participants