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.

2 votes
3 answers
309 views

Strange NativeScript/Angular2 issue, app looks for templates in the wrong location

I have a very basic Nativescript/Angular2 barcode scanner app where I just started to implement routing... I have a Home component located at app/pages/home/home.component.ts and the home component's ...
9 votes
4 answers
8k views

NextJS: Error: You cannot dot into a client module from a server component. You can only pass the imported name through

My NextJS application is as follows: app/page.js 'use client'; import React from 'react'; export default function Home() { return (<div>Testing</div>); } app/layout.js export const ...
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 ...
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 ...
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 ...
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 ...
-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 ...
0 votes
1 answer
50 views

terser-webpack-plugin and uglifyjs-webpack-plugin

Since webpack 4 is using terser-webpack-plugin by default in production mode or when we specify -p argument which is a shortcut for specifying --optimize-minimize --define process.env.NODE_ENV="...
5 votes
1 answer
6k views

Monaco editor worker

So I am currently trying to setup Monaco editor with this package: https://github.com/egoist/vue-monaco It works beautifully, except for one error message: Could not create web worker(s). Falling back ...
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 ...
2 votes
2 answers
1k views

External webpack module for electron does not work after building

I'm trying to use the archiver module in my Electron app. This caused errors during development at first because I didn't add it to my webpack externals: chainWebpack: config => { config....
0 votes
1 answer
36 views

Imported styles from scss module are undefined

I am using CSS Module and SCSS as my styling in my app, but when I import my styles as: import styles from './landing.module.scss' The imported styles is undefined. I am using: "css-loader":...
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] ...
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/...
1 vote
1 answer
664 views

How to resolve EPERM: operation not permitted error in webpack command?

How to resolve EPERM: operation not permitted error in webpack command? The following error message occurs when using webpack. PS C:\Workspace\Mission> npm run dev > [email protected] dev >...

15 30 50 per page
1
2 3 4 5
2854