Slidebars icon indicating copy to clipboard operation
Slidebars copied to clipboard

problem in laravel-mix

Open phpxtreme opened this issue 5 years ago • 1 comments

I'm trying to import this library to my project in laravel. have installed with NPM:

npm install slidebars --save-dev

Then I'm trying to import this library to my app.js file which has the following structure:

import jquery from 'jquery';
import popper from "popper.js";

try {
    window.$ = window.jQuery = jquery;
    window.Popper = popper.default;

    require('bootstrap');
    require('slidebars');

} catch (exception) {
    console.log(exception);
}

$(document).ready(function () {
    let constructor = new slidebars();
});

run npm run watch but then in my browser I get the following error in the console:

ReferenceError: slidebars is not defined

Please, if you could help me, I have searched in different places, but I can not find a solution for it. Thank you very much in advance.

phpxtreme avatar Apr 15 '19 20:04 phpxtreme

See #240 It's looks like the author @adchsm isn't active anymore so this PR is still open but it will probably fix your issue.

JoryHogeveen avatar Apr 15 '19 22:04 JoryHogeveen