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

Uncaught TypeError: this.element.uniqueId is not a function when upgrading to 4.0.1 #94

Closed
gitchuckles opened this issue Jan 5, 2017 · 3 comments
Assignees
Milestone

Comments

@gitchuckles
Copy link

I'm trying to upgrade from 3.7.1 to the 4.0.1 release and I get the following error when loading a jsp
we don't have any uniqueId calls in our code. any suggestions?
VM122:68 Uncaught TypeError: this.element.uniqueId is not a function
at $.(anonymous function).(anonymous function)._create (eval at globalEval (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:343:5), :68:5)
at $.(anonymous function).(anonymous function).eval [as _create] (eval at globalEval (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:343:5), :132:25)
at $.(anonymous function).(anonymous function)._createWidget (eval at globalEval (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:343:5), :329:8)
at new $.(anonymous function).(anonymous function) (eval at globalEval (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:343:5), :87:9)
at HTMLUListElement.eval (eval at globalEval (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:343:5), :269:30)
at Function.each (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:365:19)
at jQuery.fn.init.each (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:137:17)
at jQuery.fn.init.$.fn.(anonymous function) [as menu] (eval at globalEval (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:343:5), :261:9)
at $.(anonymous function).(anonymous function)._create (eval at globalEval (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:343:5), :217:5)
at $.(anonymous function).(anonymous function).eval [as _create] (eval at globalEval (http://localhost:8080/dev/struts/js/base/jquery-2.2.4.js:343:5), :132:25)
~

@gitchuckles gitchuckles changed the title Uncaught TypeError: this.element.uniqueId is not a function when upgrading to 4.1 Uncaught TypeError: this.element.uniqueId is not a function when upgrading to 4.0.1 Jan 5, 2017
@sdutry
Copy link
Contributor

sdutry commented Jan 5, 2017

@gitchuckles
we are aware of this issue.

It should be fixed with the fix in #89 .

Unfortunately it means you'll have to wait till version 4.0.2 is released for a definitive fix.

Known workaround:

use loadAtOnce="true" attribute on your current sj:head tag

Please let us know if this workaround works for you.

@sdutry sdutry added this to the 4.0.2 milestone Jan 5, 2017
@sdutry sdutry added the bug label Jan 5, 2017
@sdutry sdutry self-assigned this Jan 5, 2017
@gitchuckles
Copy link
Author

thanks, the workaround worked

@sdutry sdutry added the resolved label Jan 6, 2017
@jogep
Copy link
Contributor

jogep commented Jan 8, 2017

New release 4.0.2 with fix is now released.

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

No branches or pull requests

3 participants