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 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();
My package.json file In plugin’s github says but if i do this in my app.js I have an error
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:
- Created 6 years ago
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
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.