SlexAxton / yepnope.js

A Script Loader For Your Conditional Builds
http://yepnopejs.com/
BSD 3-Clause "New" or "Revised" License
2.51k stars 323 forks source link

Yepnope Error: Uncaught TypeError: Cannot read property 'split' of undefined (line 216) #224

Open radonirinamaminiaina opened 9 years ago

radonirinamaminiaina commented 9 years ago
    yepnope({
        load: ['js/jquery.js', 'js/app.js'],
        callback: {
            'jquery': function() {
                console.log('loaded')
            }
        }
    });

When I try this script, it display the error above. What's wrong with my code?

lext-7 commented 9 years ago

I got the same wrong.

if (isObject(url)) {
      // It was just kidding about being the url
      options = url;
      // Can't ever have both, so this is fine
      url = options.src || options.href;
    }

on line 256 in yepnode.2.0.0.js

radonirinamaminiaina commented 9 years ago

Ok, thanks for your reply

tr33m4n commented 8 years ago

This is still an issue, any updates?

tortillaj commented 8 years ago

If anyone is still watching, this is still a problem

atakanau commented 7 years ago

Try this: https://github.com/SlexAxton/yepnope.js/compare/master...atakanau:patch-1#diff-634c4c46979e03886c66c0e5c632a848