Hi,
I got an issue that I don't understand. I want to use YUI as a
content script. But I always got an error. By the way I don't get any
error when I don't load any module.
Here is the code, it's simple :
--------------------------------
manifest.json--------------------------------
{
"name": "My First Extension",
"version": "1.0",
"description": "The first extension that I made.",
"permissions": ["tabs"],
"content_scripts": [
{
"matches": ["http://*/*","https://*/*"],
"js" : ["yui-debug.js", "main.js"]
}
]
}
-----------------------------------------------------------------------------------
------------------------------------
main.js------------------------------------
YUI().use('node', function (Y) {
});
-----------------------------------------------------------------------------------
---------------------------------error
output---------------------------------
yui: Modules missing: node, 1
yui: Fetching loader:
http://yui.yahooapis.com/3.3.0/build/loader/loader-min.js
get: attempting to load
http://yui.yahooapis.com/3.3.0/build/loader/loader-min.js
**Uncaught ReferenceError: YUI is not defined**
yui: NOT loaded: loader
yui: Modules missing: node, 1
yui: Attaching available dependencies: node
yui: NOT loaded: node
yui: caching request: node
-----------------------------------------------------------------------------------
Chrome 11.0.696.65
Thanks !