Skip to main content

All Questions

Tagged with
0 votes
0 answers
11 views

I am trying to use jQuery 4 in webpack but I keep getting errors

I am trying to make a node js project the uses jQuery but my webpack config keeps sending errors. I tried to research but even if the syntax looks right I still get errors. The errors are all based on ...
Auz's user avatar
  • 1
-2 votes
1 answer
310 views

How to set global window for jQuery in a vitest test (jQuery requires a window with a document)?

Probably less important: Setup is done with webpack Encore which generates a webpack config file, we use yarn as a package manager, so vitest is installed with yarn. jQuery version 3.6.4 vitest ...
goulashsoup's user avatar
  • 2,909
0 votes
0 answers
205 views

Webpack Datatables import issue - JS errors "Cannot read properties of undefined"

I'm trying to get Datatables + Bootstrap + jquery to work nicely together in a Symfony 6 project. This all works fine and nicely as long as I don't use the datatables buttons. Once I include the ...
BertDB's user avatar
  • 41
0 votes
0 answers
84 views

Migrate jquery project to nextjs, and remove modularisation for each file

Right now, we have 2 programs running to power one web application. There is a nextjs application which handles about 20% of the application's logic, and a django application serving a jquery-based ...
Tristan Rice's user avatar
0 votes
0 answers
41 views

How can I address this issue? TypeError: __webpack_require__(...) is not a function

I get this error message "TypeError: webpack_require(...) is not a function" at runtime, for some reason. The full error stack is: TypeError: __webpack_require__(...) is not a function ...
dooder's user avatar
  • 539
0 votes
0 answers
19 views

Use jquery submodule?

There is a Vue application and there is a separate bundle with all the UI logic in jquery. I'm trying to use that bundle as a submodule for my Vue application. Initially, I just used some bundle ...
michail.logozar's user avatar
0 votes
0 answers
89 views

sonata admin 4 custom js not working events

I see that the v4 sonata uses Webpack - I add {% block sonata_javascript_pool %} {% for javascript in sonata_config.getOption('javascripts', []) %} <script src=&...
Developer's user avatar
  • 2,833
0 votes
1 answer
41 views

Cannot get jQuery to work when using webpack 5

I am trying to change a legacy application to use webpack 5. I have added this in home.js: import $ from "jquery"; window.jQuery = $; window.$ = $; When I build the project with webpack, in ...
Majid Fouladpour's user avatar
0 votes
1 answer
46 views

How to install jQuery using extention-cli google chrome extention library

So I tried installing jQuery using the library I mentioned (https://oss.mobilefirst.me/extension-cli/), and got the infamous $ not found error. After researching this I verified that Webpack is the ...
Joseph Astrahan's user avatar
1 vote
1 answer
565 views

Bootstrap Table Error with Webpack: Cannot set properties of undefined

I am trying to use the BootstrapTable library with Webpack. It seems related to how Jquery is being handled, but I am not 100% sure. I am getting the following error (before I even try to add in any ...
user1168077's user avatar
1 vote
0 answers
47 views

JQuery and other plugins not working after upgrading to webpacker 6

I was forced to upgrade to webpacker 6 and it has been successful for the most part, except that my plugins don't seem to be working. I followed this guide In my config/webpack/base.js: const { ...
DavidM's user avatar
  • 173
1 vote
0 answers
26 views

Webconfig for a Typescript and jquery app

I had an app, full JS, based on NodeJS Express and a simple jQuery-based UI (using EJS templates). I recently migrated the entire code to Typescript. The backend is working fine, but I need some help ...
stgo245757's user avatar
1 vote
2 answers
339 views

How to use jquery plugin flexslider in webpack 5 with react ssr

I have created a sample project repo https://github.com/nikhilgoswami/webpack-5-react-with-jquery-plugin.git I get error jQuery is not defined when importing the plugin flexslider I tried expose-...
Nikhil Goswami's user avatar
1 vote
0 answers
105 views

Why is my imported ES6 module not working?

I' building a WordPress plugin and I use Webpack to bundle my JavaScript code. Everything worked, until I wanted to implement some toast notifications with the jquery-toast-plugin. The following code, ...
Synistic's user avatar
4 votes
1 answer
437 views

How do I add jQuery to Mastodon 4.02 (using Rails 6 and Webpacker 4)?

I'm following this question from 2020 How do I use jQuery in Rails 6.0.3.3? , but I'm not able to add jQuery to Rails 6 and Webpacker 4 in Mastodon 4.02 https://github.com/mastodon/mastodon However, I ...
BlueDogRanch's user avatar

15 30 50 per page
1
2 3 4 5
46