留言板

YUI Version Conflict Issue

thumbnail
Mayur Patel,修改在12 年前。

YUI Version Conflict Issue

Expert 帖子: 358 加入日期: 10-11-17 最近的帖子
Hello All,

I'm loading yui.js 3.3.0 version file from portlet but liferay 6.0 its using 3.2.0 yui.js file, so whenever i'm loading that page js errors are coming like

G_ENV._loaded[VERSION] is undefined - this error is coming in yui.js which is liferay using that is 3.2.0 version.

so its replacing value like G_ENV._loaded[3.2.0] and that will throw an error becoz we loaded 3.3.0 version from portlet.

I replaced yui.js 3.2.0 version file in portlet but It was throwing some other js errors.

How will it work same in 3.2.0 or Is there any way to update existing version of yui?

This is the code of yui.js in this line its throwing error

if (!G_ENV._loaded[VERSION][name]) {
missing.push(name);
} else {
used[name] = true; // probably css
}


I changed yui.js version to 3.2.0 in portlet but then It is throwing some other errors like 'YUI.AUI is undefined' in aui-node.js

OR

Is there any way to upgrade liferay to use yui 3.3.0 version?

Any help would be appricated, anyone has faced this kind of problem.

Thanks