It is not running on Docker. I’ve not exactly sure what you mean by how am I trying to run it locally. I cloned down our repo, merged it with discourse’s master branch to get any necessary updates. Migrated it and ran it with rails s. There are a few custom modifications/plugins that were made a year before I picked this up.
I can pinpoint to you exactly where the code is breaking.
When a module is created for ‘plugin-api’ it tries to recursively go through all of its children and create mods for them. On the third child ‘discourse/widgets/post-cooked’, it is fed into this line (line 122) of discourse-loader.
“reified[i] = requireFrom(resolve(dep, name), name);” is called.
when it runs registry[name] it receives an undefined and throws the error crashing the loader.
It seems clear that every single child that contains ‘widgets’ for plugin-api is not included in the registry object and therefore will crash the loader. I’ve tried moving these module names into the ‘Moved_Module’ object at the top of the page and that did not work either.
If you have any ideas, please let me know. Been at this all day.