Hristomir Hristov

Registered
Feb 17, 2017
1
0
1
Sofia, Bulgaria
cPanel Access Level
Root Administrator
Hello,

I am trying to create a new form in a custom plugin. I use those two pages as reference:
cPanel Style Guide
Guide to cPanel Interface Customization - jQuery - Software Development Kit - cPanel Documentation

But when I try i get this javascript error:
Error: Script error for: base
Common Errors

This is my javascript code:
Code:
document.addEventListener("DOMContentLoaded", function () {
        // Load the frameworks bundle, which contains the jQuery library and is used by the rest of cPanel
        require(["frameworksBuild"], function () {
            require([
                "angular",
                "uiBootstrap",
                "ngSanitize",
                "cjt/directives/toggleLabelInfoDirective",
                "base"
            ], function (angular) {
                var app = angular.module("App");

                app.controller("formController", ["$scope", function ($scope) {

                    }]);
            });
        });
    });
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Could you open a support ticket using the link in my signature so we can take a closer look to see what's happening?

Thank you.