Questions tagged [webpack-5]

For inquiries regarding the functionalities of Webpack 5, be sure to utilize this tag. It is recommended to include the broader [webpack] tag alongside when applicable.

Oops! Next.js Scripts encountered an error: Module '../../webpack-runtime.js' cannot be located

Looking to develop an RSS script with Next.js. To achieve this, I created a script in a subfolder within the root directory called scripts/ and named it build-rss.js next.config.js module.exports = { webpack: (config, options) => { config.m ...

After updating certain CSS loaders, the `import * as` functionality is no longer working correctly

I have recently updated a number of packages to their latest versions. Below are the details of the upgrades: Package Name Current Version in Project Upgraded Version (Latest Version) mini-css-extract-plugin 0.8.2 2.8.0 postcss-browser-reporter 0. ...

Utilizing Angular routing with Module Federation

I am currently involved in a module federation project. mfe1: ParentApp mfe2: childApp1 mfe3: childApp2 mfe4: childApp3(parent of ChildApp1) Each of the child applications, including childApp1, childApp2, and childApp3, have their own routing modules tha ...

What causes the discrepancy in size between development mode bundles created with lodash and lodash-es?

webpack.config.js const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { mode: 'production', entry: { app: './src/index.js' }, plugins: [ new HtmlWebpackPlugin({ title: 'p ...

How come the styles of Ant Design are not being applied in a Next.js application using Webpack5?

I am currently developing a Next.js application with webpack5 and incorporating the Antd framework for the UI. However, I am facing an issue where the styles are not being applied. Even though I can see the Ant classes being applied to buttons in the dev t ...

Alert: Potential shared module issue detected when updating swr from version 1 to version 2 within a NextJS application

I have decided to upgrade my swr package from version 1 to the latest version 2. Here is a glimpse of my package.json. I am currently utilizing React 18, NextJS 12, and Webpack 5 for this project, including the ModuleFederationPlugin integration. { " ...

Utilizing mp3 files in Webpack 5 with Next.js

After hours of struggling with my current project using [email protected] and webpack v5, I found myself stuck on fixing mp3 loading. Despite trying various solutions from Stack Overflow and GitHub, none seemed to work for me. Type error: Cannot find ...