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

When script loaded: Failed to execute 'createElement' #23

Open
wjdp opened this issue May 14, 2015 · 2 comments
Open

When script loaded: Failed to execute 'createElement' #23

wjdp opened this issue May 14, 2015 · 2 comments

Comments

@wjdp
Copy link

wjdp commented May 14, 2015

Getting the following on Chrome 41 (and FF)

Uncaught TypeError: Failed to execute 'createElement' on 'Document': 1 argument required, but only 0 present.

image

I'm probably doing something wrong, the script is loaded like:

<script src="/static/bower_components/min.js/dist/$.js"></script>

@remy
Copy link
Owner

remy commented May 16, 2015

Sod, bower is out of date. I'm not a big user of bower, so I'm not sure how. But the dist version in this project (updated 2 years ago!) has createElement('i') which fixed that error.

Any advice on how I get bower to see the latest?

@wjdp
Copy link
Author

wjdp commented May 18, 2015

Just had a look into it, you need to tag new releases. The last tag was 0.1.0 so bower thinks that the latest.

See my fork: https://github.com/wjdp/min.js if you do bower install [email protected]:wjdp/min.js.git 0.2.4 will be installed.

Also see this SO question: http://stackoverflow.com/questions/28782108/is-bower-auto-updating-itself-from-github

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