Kinark / Materialize-stepper

A little plugin that implements a stepper to Materializecss framework.
https://kinark.github.io/Materialize-stepper/
MIT License
227 stars 60 forks source link

Not working with new Materializecss versions without jquery #45

Closed judasane closed 6 years ago

judasane commented 6 years ago

The new Materialize versions allows to use the framework without JQuery.

It is a shame that we cannot use this stepper that way

SwaroopH commented 6 years ago

This has little do with Materialize itself as this stepper requires jQuery as a dependency. I was able to get it to work with the new framework without much trouble. Give it a try!

marcialsoto commented 6 years ago

Can you please elaborate the solution? I am trying:

var materializeStepper = require("materialize-stepper")

And receiving a error message:

Uncaught ReferenceError: $ is not defined at Object.require.materialize-stepper (vendor.js:153102)

SwaroopH commented 6 years ago

You aren't including jQuery which is a dependency for stepper.

agrorural commented 6 years ago

Yes i am:

const $ = require('jquery'); require('materialize-css'); var materializeStepper = require("materialize-stepper");

I am using Browserify + Gulp.

Thanks for your time, buddy.

SwaroopH commented 6 years ago

Will have to look at that later but try directly linking (or CDNs) in the html for now? @agrorural @marcialsoto

agrorural commented 6 years ago

Same output.

Using: https://www.jsdelivr.com/package/npm/materialize-stepper

SwaroopH commented 6 years ago

@agrorural can you setup an example page on Github or somewhere?

agrorural commented 6 years ago

https://gist.github.com/agrorural/d6e3ffd285a4d7187f40efb25ddf7857 (package.json) https://gist.github.com/agrorural/d39df1d44f49b81fdba74252c0f279a7 (gulpfile.js) https://gist.github.com/agrorural/b3a6ab1013d2382cbdb7b211453c2ee9 (file where load)

Kinark commented 6 years ago

Sorry everyone, I'm updating everything in a new version I'm working on. Check the updated README for more information.

Thanks and sorry again.

Kinark commented 6 years ago

Fixed, among with anothor thousand fixes. Everything was made from scratch in the new beta version. Check the new docs to learn more.