Giter Site home page Giter Site logo

Comments (8)

 avatar commented on May 23, 2024 1

Hi @shaahid-kh,
Tengo el mismo problema.
Estoy usando la version 4.0.2 de la plantilla.
Agregué la lib jquery 3.6.0 y me presenta este error:

Uncaught TypeError: Cannot set property 'Constructor' of undefined
    at index.js:234
    at index.js:214
    at Array.forEach (<anonymous>)
    at HTMLDocument.<anonymous> (index.js:214)
const defineJQueryPlugin = plugin => {
  onDOMContentLoaded(() => {
    const $ = getjQuery()
    /* istanbul ignore if */
    if ($) {
      const name = plugin.NAME
      const JQUERY_NO_CONFLICT = $.fn[name]
      $.fn[name] = plugin.jQueryInterface
      $.fn[name].Constructor = plugin
      $.fn[name].noConflict = () => {
        $.fn[name] = JQUERY_NO_CONFLICT
        return plugin.jQueryInterface
      }
    }
  })
}

Please, help us @mrholek

from coreui-free-bootstrap-admin-template.

 avatar commented on May 23, 2024 1

Apologies if this is a silly question... so, this means that we are waiting for the 4.0.5 release? Is it available somewhere already?

HI @tgogos,
no, that means that in the Package.json you must change the version of the coreui to 4.0.5. Yesterday I did it and it works perfectly

from coreui-free-bootstrap-admin-template.

jynxy avatar jynxy commented on May 23, 2024

+1 same error cant add jquery

from coreui-free-bootstrap-admin-template.

jynxy avatar jynxy commented on May 23, 2024

Think i found a fix no expert

Line 6981 defineJQueryPlugin(NAME$2);
change to defineJQueryPlugin(Sidebar);

Not sure why this is not working

from coreui-free-bootstrap-admin-template.

mrholek avatar mrholek commented on May 23, 2024

@shaahid-kh @ndavilam85 @jynxy I will check where is a problem.

from coreui-free-bootstrap-admin-template.

mrholek avatar mrholek commented on May 23, 2024

@shaahid-kh @ndavilam85 @jynxy please update @coreui/coreui to 4.0.5 and reinstall it using npm install

from coreui-free-bootstrap-admin-template.

 avatar commented on May 23, 2024

@shaahid-kh @ndavilam85 @jynxy please update @coreui/coreui to 4.0.5 and reinstall it using npm install

Thxs I will test this solution

from coreui-free-bootstrap-admin-template.

tgogos avatar tgogos commented on May 23, 2024

Apologies if this is a silly question... so, this means that we are waiting for the 4.0.5 release? Is it available somewhere already?

from coreui-free-bootstrap-admin-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.