Code Monkey home page Code Monkey logo

Comments (5)

DBoutesfira avatar DBoutesfira commented on June 2, 2024

same problem

from phpdesktop.

demo7up avatar demo7up commented on June 2, 2024

Ive figured out the bootstrap issue, but unfortunately I do not know enough javascript to refactor the code. Its a problem with Spread syntax (...) bs5 uses this to allow an iterable, such as an array or string, to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected. Im trying to figure out a way to replace this. Any help from some javascript guys would be appreciated.

Its not an issue with arrays or functions because they are supported in Chrome since version 46 but its an issue with objects.

Spread in object literals is only supported in Chrome 60+
Spread in object literals

_mergeConfigObj(t, e) { const i = o(e) ? B.getDataAttribute(e, "config") : {}; return { ...this.constructor.Default, ...("object" == typeof i ? i : {}), ...(o(e) ? B.getDataAttributes(e) : {}), ...("object" == typeof t ? t : {}), }; }

from phpdesktop.

oleteacher avatar oleteacher commented on June 2, 2024

This may help, but I have not tried it personally: https://github.com/coliff/bootstrap-ie11

from phpdesktop.

caendesilva avatar caendesilva commented on June 2, 2024

Unfortunately the bundled Chromium version is extremely outdated and many modern features simply do not work.

from phpdesktop.

Iam-Makafui avatar Iam-Makafui commented on June 2, 2024

i had similar issue and did this temporary fix

  1. Install Babel and Dependencies: Run the following command in your terminal to install Babel and its necessary dependencies:
    npm install --save-dev @babel/core @babel/cli @babel/preset-env

  2. Create Babel Configuration: Create a Babel configuration file named .babelrc in the root directory of your project. Inside this file, specify the presets you want to use. For example:
    { "presets": ["@babel/preset-env"] }

  3. Transpile Your JavaScript: Transpile your bootstrap.bundle.min.js file using Babel. Run the following command in your terminal:
    npx babel path/to/the/bootstrap.bundle.min.js --out-file new/path/to/the/outputfile/bootstrap.bundle.min.js

Replace path/to/the/bootstrap.bundle.min.js with the path to your original JavaScript file, and new/path/to/the/outputfile/bootstrap.bundle.min.js with the desired output path.

  1. Include Transpiled File in Laravel: Once transpilation is complete, include the transpiled JavaScript file (bootstrap.bundle.min.js) in your project. You can do this in your template file or wherever you include JavaScript files.

<script src="new/path/to/the/outputfile/bootstrap.bundle.min.js"></script>

By following these steps, you'll integrate Babel into your project to transpile the Bootstrap bundle script, ensuring compatibility with older environments.

from phpdesktop.

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.