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.

Cant extract new fancybox3

See original GitHub issue

Name of this plugin is "@fancyapps/fancybox": "^3.0.48" (https://www.npmjs.com/package/@fancyapps/fancybox) And if i use laravel-mix:

mix.js('resources/assets/js/app.js', 'public/js')
    .sass('resources/assets/sass/app.scss', 'public/css')
    .extract(['axios', 'jquery', 'vue', 'slick-carousel', '@fancyapps/fancybox'])
    .version();

This plugin is present in vendor.js, but not working (TypeError: t is not a function because cant find dependency jQuery. If i remove this plugin from extract array, all works fine.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
projct1commented, May 5, 2017

@implenton Shure, here my mix file:

const { mix } = require('laravel-mix');

mix.autoload({
    jquery: [ '$' , 'window.jQuery' ]
});

mix.js('resources/assets/js/app.js', 'public/js')
    .standaloneSass('resources/assets/sass/app.scss', 'public/css')
    .extract(['axios', 'jquery', 'vue', 'slick-carousel', '@fancyapps/fancybox'])
    .version();
1reaction
ankurk91commented, Apr 14, 2017

Can you try autoloading

mix. autoload({
jquery : [ '$' , 'window.jQuery' ]
});

https://github.com/JeffreyWay/laravel-mix/blob/master/docs/autoloading.md

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cant extract new fancybox3 · Issue #703 · laravel-mix ... - GitHub
This plugin is present in vendor.js , but not working ( TypeError: t is not a function because cant find dependency jQuery.
Read more >
javascript - Fancybox 3 - Unable to POST data - Stack Overflow
I am unable to send data to a fancybox that opens once a button is clicked. $('.edit-user').click(function(){ var data = {}; data.user_id ...
Read more >
fancybox3 · Documentation
fancybox is designed to display images, video, iframes and any HTML content. For your convenience, there is a built in support for inline...
Read more >
Fancybox3 in Prestashop 1.6.1.x - General topics
Hello, We have obtained numerous comments on the possibility of swipe the photos with the finger in the mobile version.
Read more >
How to select and upload image file using JQuery Ajax
Lets upload file using ajax JQuery. Files & Folder. Create a root folder with any name. In your main folder create an index.html...
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