Category "webpack"

Failed to minify the code from this file (styled.js)

We upgraded to MUI v5 and when we try to build the project we get the following error: Failed to minify the code from this file: ./node_modules/@mui/material/s

I am getting this error TypeError: Cannot assign to read only property 'map' of object '#<QueryCursor>' 2022-02-19T12:38:49.101286+00:00 app[web.1]:

I am trying to deploy my node.js app for weeks but I am not able to deploy it, Please can someone please help me to deploy this, I have done everything, but sti

CKEditor: [CKEditorWebpackPlugin] Error: Too many JS assets has been found during the compilation

I am updating the CKEditor packages in my Rails/React app from ~12 to the latest version 27. When running the app locally in my webpack-dev-server I see this e

Is there any solution of "JavaScript heap out of memory" & "Array buffer failed"?

error image I'm building a website with react. But suddenly when I entered npm run start after some time it gave me errors Fatal error: NewSpace:: Rebalance All

Prototype Pollution in async linters error

linters error npm audit report async <2.6.4 Severity: high Prototype Pollution in async - https://github.com/advisories/GHSA-fwr7-v2mv-hh25 fix available v

Why we need to lint code when build with webpack?

There are some plugin about linting code, such as https://github.com/webpack-contrib/eslint-webpack-plugin. I wonder why we need to lint code during building. E

How to bundle NextJS project into one single file

I'm currently building a project that will work as an addon to another application. I'm currently using NextJS to build the application, but I need to bundle th

Resolving multiple versions of React in component library built with Webpack and Storybook

I'm trying to build a React component library built on top of MUI and using Storybook and TypeScript. Because Storybook (which uses create-react-app) is based o

Resolving multiple versions of React in component library built with Webpack and Storybook

I'm trying to build a React component library built on top of MUI and using Storybook and TypeScript. Because Storybook (which uses create-react-app) is based o

How do I use Webpack to get all files into one file?

I want to use Webpack to add a handler on React. My file package.json look like this: { "version": "0.1.0", "private": true, "dependencies": { "@testin

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default while deleting images in cloudinary using react

I want to delete images of cloudinary in react , i am using firebase for backend , so cant use node.js backend api, so have to use cloudinary api to delete imag

Why is CssMinimizerWebpackPlugin preventing my main js file from being minified?

I am using webpack's CssMinimizerWebpackPlugin (docs). I initially configured it as recommended on the documentation optimization: { minimize: true, m

JetBrains rider IDE => Hosting Environment

enter image description hereI am trying to move from Visual Studio 2022 to JetBrains rider with my .NET full-stack project. I am using Webpack for my front-end

Cannot find module 'webpack' using webpack-dev-server

Trying to get familiar to chat apps using this tutorial. Everything looks good, but when I try to run npm run watch according to the directions in the end, I ge

Automatically generating Webpack chunk names for dynamic imports

I would like my webpack-generated JS chunk files to have the same name as the source filename. I know I can achieve this by explicitely adding a magic comment l

Mocking federated modules in host application for jest

Question is exactly same here in fact but has different context: How to mock not installed npm package in jest? I am part of a project where new Module Federati

webpack dev server only reloads once

Ok so now i have read a lot of different issues on stackoverflow without any luck, they seem all to go to an older version of webpack-dev-server. I have tried a

Error: Prevent writing to file that only differs in casing or query string from already written file. reactjs laravel

I am working on a laravel reactjs project and when I run the command npm run dev the compilation stuck at 95% and give the following error. I checked in the wh

Conditional compilation using ifdef-loader with Angular 13 and Webpack?

I have an Ionic application that relies heavily on conditional compilation where I include or exclude blocks of code based on a set of config values similar to

Force Webpack to use ES6 syntax in react-app bundle [duplicate]

My aim would be to have ES6 syntax (or latest one) in my entire react-app built. I've already managed to avoid polyfills in my own code by omi