Code Monkey home page Code Monkey logo

Comments (8)

nille avatar nille commented on June 9, 2024

Not sure what that means?

from uikit3.

nille avatar nille commented on June 9, 2024

Never mind. Fixed it by adding a jquery include to app.blade.php.

from uikit3.

nille avatar nille commented on June 9, 2024

But perhaps there still is a problem? Looks to me like bootstrap.js includes jquery so I probably shouldn't have to link it manually?

from uikit3.

OwenMelbz avatar OwenMelbz commented on June 9, 2024

@nille have you run mix to compile the assets?

from uikit3.

nille avatar nille commented on June 9, 2024

@OwenMelbz Yes, I have.
Also, if I inspect the page in chromes console I see this error:

bootstrap.js:6 Uncaught Error: Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.

Not sure why there is a reference to Bootstrap there.

from uikit3.

OwenMelbz avatar OwenMelbz commented on June 9, 2024

Can you paste your bootstrap.js and your package.json? Ideally within the x3 ``` so it looks like

{ blah }

from uikit3.

nille avatar nille commented on June 9, 2024

I'm ashamed to admit it but the fault was (off course) my own. Apparently one of my chrome addons messed everything up as it has some sort of reference to bootstrap/jquery.
(Here is the addon in case you are interested: https://chrome.google.com/webstore/detail/whatshisface/hdlljjddnhidfgllahkjhpfgommecolc?hl=en-GB)

Thanks!!

from uikit3.

zymawy avatar zymawy commented on June 9, 2024

You can just import the uikit in app.js

import UIkit from "uikit";
import Icons from "uikit/dist/js/uikit-icons";

// loads the Icon plugin
UIkit.use(Icons);

// components can be called from the imported UIkit reference
UIkit.notification("Hello world.");

from uikit3.

Related Issues (9)

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.