I’m developing a special page extension and I want to add some interactive OOUI elements. When I add the scripts or dependencies to my extension.json
, ResourceLoader fails and the CSS of my page breaks. I’ve looked at Using OOUI in MediaWiki as well as copying code from other extensions. I’ve ensured that my ResourceFileModulePaths
is correct and I’ve tried variations on the module name like ooui-core
or just oojs
which I see in some extensions.
Here is the relevant snippet from my extension.json
:
"ResourceModules": {
"ext.WikiActivity": {
"scripts": [
"WikiActivity.js"
],
"styles": [
"WikiActivity.css"
],
"dependencies": [
"oojs-ui-core",
"oojs-ui-widgets"
]
}
},