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.

5.25.0 has broken my builds

See original GitHub issue

Bug report

I have a Laravel app which uses blade.php for browser-side content, with some small <script> sections using JQuery. JQuery is part of the vendor.js chunk created by Webpack, via Laravel Mix

When build with 5.24.4, everything works as expected

What is the current behavior?

However, with 5.25, the bundles are created but when a page loads and attempts to use JQuery I get the dreaded…

ReferenceError: $ is not defined error in the browser console.

The only difference in the created bundles appears to be the new chunk loading code in manifest.js, and the __webpack_require__ section at the tail of each created file.

If the current behavior is a bug, please provide the steps to reproduce.

Probably difficult to provide this as it’s a large project - I will try and get a minimal example.

What is the expected behavior? “$” should be defined.

Other relevant information: webpack version: 5.25.0 Node.js version: this is a client-side issue. Operating System: Windows 10 Additional tools:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
thecrypticacecommented, Mar 12, 2021

Hi! I’m one of the people who works on Mix. I’d be happy to help where I can with this!

Ah that’s possible if you have a chunk with only css and no JS, due to splitChunks.

Yep this happens because we split CSS using splitChunks with a filename test + type: css/mini-extract + enforce: true

1reaction
alexander-akaitcommented, Mar 12, 2021

I thing bug on Laravel Mix side, as you can see no reports from other developers

Read more comments on GitHub >

github_iconTop Results From Across the Web

After 5.25 update kscreenlocker crashes if using howdy
Version: 5.25.0 ... in kscreenlocker but after 5.25 update my screenlock become broken. ... Module linux-vdso.so.1 with build-id ...
Read more >
Update to KDE Plasma 5.25.0 : r/openSUSE - Reddit
KDE Mantainers did an exceptional job with this release. Sometimes builds are stuck for a while (failing OpenQA tests, etc). This time around ......
Read more >
Some compatibility checks not working ; filter / require ...
I think several months ago, the motherboard compatibility checker was working properly, but I think the case one has been broken for quite...
Read more >
793986 – app-text/calibre-5.16.1: [Errno 2] No such file or ...
Gentoo's PyQt5 build process has been subtly broken for the past two ... The "unstable" dev-python/calibre-5.25.0-r2 ebuild resolves both of ...
Read more >
Best Build & Teams | Genshin Impact - YouTube
IS FARUZAN BROKEN ? Complete Faruzan Guide & Review [C0 vs C6] - Best Build & Teams | Genshin Impact · Chapters. View...
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