Since you are trying to build most, if not all, of yui-ext, I would take a look at the JSB project file that Jack actually uses to do his releases. It includes all the files he builds, plus all of his various build targets with the source order he uses. You may have to change paths depending on how you have stuff set up, but the build target file orders should work no problem if you follow his lead.

and i went down to line 92. This is the target tag with the name yui-ext.js.

If you look at line 93, the include tag shows yutil.js before the EventManager.js (line 102).

Are you seeing something else?

6 Dec 2006, 9:16 PM

brian.moeskau

The build order you listed is correct. I just now reinstalled JSB fresh from the downloaded .zip, set up a fresh JSB project, created a build target including all of .33 RC3, reordered it to exactly match what you have listed, built it and dropped it into an existing working project that I have. Everything works fine.

I actually did have the same error you listed initially -- until I realized that I had named the file I built incorrectly and my existing script include tag was no longer valid :oops:. Once I renamed the file, everything worked perfectly. Please double-check your file name and your script references. Also, silly question, but... have you tried swapping out your custom file with the release version of yui-ext-debug.js that comes with the download to make sure the issue is not in your code?

If all else still fails, please post a link or some sample code if possible that reproducse the issue. Your build script looks correct, and I cannot see anything wrong on my side.

6 Dec 2006, 9:33 PM

dmayer

I checked the filenames and the script tags and it checks out. Here is js code that I am using on my page:

- I assume that your original error was caused by not having yutils.cs included first, and that it's resolved, correct? If you are getting a different error now, please post the error message.

- Do you get the exact same error whether you use your JSB version of yui-ext-debug.js versus the release version? If it's the same error, then it's likely something unrelated to the JSB build specifically.

7 Dec 2006, 9:22 PM

dmayer

I downloaded the yui-ext.js 0.33 rc 3 and used it on my web page and I still get the error.

The problem is with your yui.js file. Since the error is related to the namespace YUI.ext.util not being valid, and it obviously should have been, I started thinking that the namespace itself was not actually getting created correctly to begin with in YUI. The very first section of yui.js contains yahoo-min.js which is where all custom namespaces get created, so I compared that section against the latest yahoo-min.js from the 0.12 YUI release. They were different, so I added the "correct" version to your page after yui.js to override it and this fixed the error and the page rendered correctly:

I also tested simply replacing the yahoo-min section in yui.js with the current file, and that also worked. I assume that you created yui.js manually? I can't tell if it's just an out-of-date version of the YUI stuff or if the code was altered incorrectly during building that file. Either way, you should definitely review this file more closely and make sure that all of the YUI scripts that you're combining are correct and up-to-date.