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
42,781
questions
-5
votes
0
answers
15
views
Failing compilation of a react project
i am trying to compile a react project, but i get the error in the attached file?
I am using Webpack 4.44.2 and React-Spring 8.0.27
Can you please help ?
It has something to do with the question mark ...
0
votes
0
answers
3
views
Event listeners in imported TypeScript service worker not triggered
I’m trying to import a service worker file written in TypeScript using importScripts in another service worker file. After some checks, it seems that the file is loaded fine, but the event listeners ...
0
votes
0
answers
13
views
Integration of PHP frontend app (with Angular v1.4) into React.js main SPA project as a microfrontend [closed]
I have a front-end project created using PHP, and inside it, we are using Angular v1.4 for building and routing. My point is, we are now working to add a new technology stack like React.js. So, I have ...
0
votes
0
answers
10
views
Disable webpackChunkName comment on Production env
I'm trying to rename chunk for easier to debug in lighthouse. However, I find that size of chunk increase slightly after I have renamed it. I guest it have to store more bytes for the name of the ...
-2
votes
0
answers
19
views
Why does webpack-dev-server@5 need at least Node 18?
I am developing an old program with Node version 16. When I try to upgrade to use Webpack 5, I notice that the Node version dependency of webpack-dev-server@5 is 18. Why? Are there any features or ...
0
votes
0
answers
18
views
webpack 5 with babel not transpiling to node 0.12 (es5.1)
I've a node.js app that is using webpack and babel to transpile to node.js 8.x, I'm trying to get it to transpile to the much older node.js 0.12 to support some older devices, but for some reason the ...
-1
votes
0
answers
26
views
ERROR: Module not found: Error: Package path . is not exported from
I am using Node and express along with svelte on the frontend, I have npm installed the "socket.io-client" package on the client side, but when I try to import it, I get this error.
I see ...
0
votes
0
answers
6
views
Has anyone successfully been able to make a cross platform package for React Native and React that is a Design System using rollupjs and styled compon
Has anyone successfully created a cross-platform package for React Native and React that serves as a Design System using RollupJS and styled-components?
I know it's possible to build and style ...
0
votes
0
answers
7
views
Rendering chunks in parallel to the entry file
enter image description here
enter image description here
I want to solve the following problem in js:
When the page refreshes, I have 1 entry file pulled up in html and after it has loaded, its ...
-2
votes
0
answers
18
views
React library debugging and conribution. Debug Reactjs. Source code
I followed Development Workflow steps to start my research in React library.
However, I got stuck on last step with build command
yarn build react/index,react-dom/index --type=UMD
When I run this line ...
0
votes
0
answers
18
views
ASP.NET Core MVC with React Integration not finding my bundle.js on Production Server [Azure]
My code working fine on localhost but when I deploy to production, it is unable to find bundle.js:
enter image description here
It's perfectly working in development mode:
enter image description here
...
0
votes
1
answer
15
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":...
0
votes
0
answers
10
views
Angular Module Federation MFE with angular material
I am creating angular 15 project and adding MFEs. I am not able to configure angular material in this project.
Please help with suitable guide or tutorial to follow instructions
0
votes
0
answers
12
views
How do i call a function from source using devtools on web.telegram.org?
so telegram uses webpack and there is callApi which looks like:
export function callApi<T extends keyof Methods>(fnName: T, ...args: MethodArgs<T>): MethodResponse<T> {
// @ts-...
-4
votes
0
answers
35
views
Setting up project for developing RxJS app [closed]
I am trying to set up VS Code project for developing RxJS apps. I am following this article.
I am trying to connect to the server using this url: localhost:9000/ but I keep getting Cannot GET / ...