Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [webpack]

Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it can also transform, bundle, or package just about any resource or asset. Webpack takes modules with dependencies and generates static assets representing those modules. Webpack enables extensibility and promotes best practices in web architecture and performance.

webpack
0 votes
0 answers
7 views

Figma Plugin with react

Greetigns, I’m trying to build a Figma plugin using React and typscript, somehow I get a weird error saying Uncaught TypeError: Cannot read properties of undefined (reading 'createElement') even ...
Ab Arabi's user avatar
0 votes
1 answer
17 views

Why is my webpack bundlerer creating multiple main.js files?

I noticed tree shaking wasn't correctly because I was compiling my TypeScript to 'commonjs'. I changed this to 'ES2015' and now my output build looks like this: enter image description here. What's ...
Elliot's user avatar
  • 11
-1 votes
0 answers
14 views

AngularJS Comp in Angular15

Tech Stack: Angular 15x, React18, webpack5. Issue: we have a AngularJS1.6 component which we used to bootstrap as below, which worked fine in Angular8, React16, webapack4, but post upgrade started to ...
MeMyUX's user avatar
  • 1
1 vote
0 answers
14 views

How can I solve the system reaching limit number of file watchs in an Expo program?

I'm doing an program in Expo, when I try to test the program(especificaly in web) it's been printing this error. Error: ENOSPC: System limit for number of file watchers reached, watch '/home/gabriel/...
gabriel goes braga's user avatar
1 vote
1 answer
27 views

Laravel, Vue and Apache2 with hot reload with reverse proxy

I´ve been banging my head for over 2 weeks with this and can't make it work for the life of me. Here's the information: My site is on a remote server in Digital Ocean, running Ubuntu and apache2. My ...
Malkios's user avatar
  • 47
1 vote
1 answer
25 views

Porting webapck from webpack 4.29.6 to 5.93.0

I'm trying to upgrade my application in electron, specifically from webpack 4.29.6 to 5.93.0, but I'm running into a problem that I can't solve. The error during compilation is this: [webpack-cli] ...
scorona85's user avatar
  • 121
0 votes
0 answers
14 views

TypeError: loaderUtils.getOption is not a function

EDIT I am following a Full Stack Development Course by freeCodeCamp right here. When I run the command npm start to start React App, the browser is showing nothing. When I back with my code I can see ...
Trần Khôi's user avatar
-1 votes
0 answers
30 views

TypeError: Cannot read 'register' of undefined

Title: TypeError: Cannot read 'register' of undefined Description: I'm developing a React application (kpiApp) using a specific framework. When I try to register my application, I encounter the ...
Sai Dinavahi's user avatar
-1 votes
0 answers
40 views

Save function to json and load it back (external dependencies + webpack)

I'm trying to save a function into a JSON and load it back. My code is as following : import { Style } from 'external-lib' function testFunction() { return new Style(); } var str = String(...
sheep's user avatar
  • 29
0 votes
0 answers
19 views

SassError: Can't find stylesheet to import. - while importing styles from external package

I have a React application which use custom Webpack config. I want to add library for components, specifically @carbon/react in version 1.62.1, the newest available. My application uses React 18, ...
Midnightwish's user avatar
0 votes
0 answers
15 views

webpack devServer: how to open browser using local IP address instead of localhost

I am developing for mobile React apps, and use a QR code on the page to set my mobile browser to the address of my test page on my desktop. Currently the devServer always opens to localhost, and I ...
sky99leaf's user avatar
0 votes
2 answers
33 views

Minimum working example for Slickgrid + Webpack + Flask

I want to include slickgrid (npm install slickgrid, slickgrid.net) in my Python Flask project and I don't want to use CDN, so I'm looking at a Webpack solution. I have been following the procedure for ...
Knyq's user avatar
  • 15
0 votes
0 answers
7 views

Functioning of a webpack caching loader

The following text and code block is from SurviveJS book explaining how caching loader works: Caching with loaders Although webpack caches loaders by default unless they set this.cacheable(false), ...
jam's user avatar
  • 15
0 votes
0 answers
14 views

Issue in accessing aws-iot-device-sdk-v2 apis from react application

I am trying to use AWS IoT Device SDK JS 2 with a simple ReactJS application. The application is targeted to run in a browser. I have all the required certificates and credentials with me to configure ...
User7723337's user avatar
  • 11.9k
0 votes
0 answers
18 views

How to configure webpack to work with mupdf.js in an Electron, T

I was trying to integrate document viewer tabs in an electron app. First I tried using native bindings to create a node addon but the IPC between main and renderer processes along with mutexes was ...
Mohib Najam's user avatar

15 30 50 per page
1
2 3 4 5
2853