question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with jQuery plugins

See original GitHub issue
  • Laravel Mix Version: 1.4.2
  • Node Version: 6.11.2
  • NPM Version: 3.10.10
  • OS: Windows 7

Description:

There is a problem with connecting and using jQuery plugins (Owl Carousel 2). The plugin is installed by npm, it gives an error when used screenshot_302 I tried to solve it using the code below, but the problem is still here.

mix.autoload({
        jquery: ['$', 'window.jQuery']
    })
    .js('resources/assets/js/app.js', 'public/js')
    .version()
    .sourceMaps();

screenshot_303 My package.json file screenshot_304 In plugin’s github says screenshot_305 but if i do this in my app.js I have an error screenshot_306

Steps To Reproduce:

Install clean laravel 5.5 project, execute composer install && npm install, make npm install --save owl.carousel. In your welcome.blade.php and app.js create a basic example from basic demo. Make npm run watch or npm run dev or just fork it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ShahabHomayounicommented, Aug 24, 2017

I have this problem too, how can add our external js files (jquery plugins and …) in the vue project? Should it be add in main.html? or another way ( bootstrap.js => how? ) , can anyone help?

0reactions
stale[bot]commented, Dec 4, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting JavaScript and jQuery Problems
Here you can find a guide to identify and solve common JavaScript and jQuery errors in WordPress with your browser tools.
Read more >
Issues for jQuery plugins | Drupal.org
Title Status Priority Category Version Compone... pls add jstree Active Normal Feature request 7.x‑1.x‑dev Code jquery module for creating flipbook Active Normal Feature request 6.x‑1.9...
Read more >
JQuery plugin not working when used in multiple places in a ...
I've created a codepen of the basic code to demo the issue. To show the issue, on a window size of >768px try...
Read more >
jQuery plugin browser compatibility an issue?
I am trying to decide how to start with a browser plugin, I have no experience from plugin development. Firstly I am concerned...
Read more >
Issue with jQuery plugins #1127 - GitHub
Laravel Mix Version: 1.4.2 Node Version: 6.11.2 NPM Version: 3.10.10 OS: Windows 7 Description: There is a problem with connecting and using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found