Skip to main content

All Questions

Tagged with
0 votes
0 answers
8 views

React project from Webpack to Vite

I'm moving my React project from Webpack to Vite, but I have some problems: File Extensions: My files end with .js, but Vite wants them to be .jsx. Node Version: My project uses Node 16.14.0, but Vite ...
logith vikram's user avatar
0 votes
0 answers
6 views

Use hash in remote module URL for webpack module federated components

I have a app that loads some module federated components. For example: module.exports = { plugins: [ new ModuleFederationPlugin({ name: 'app', remotes: { remoteComponent1:'...
ninja's user avatar
  • 355
0 votes
0 answers
7 views

Rendering webpack bundled is code on html

I have compiled react component into a js bundle using webpack. Importing this into other react projects works just fine. Is there any way to render this js file on a normal html file, without using ...
Chethan B N's user avatar
0 votes
0 answers
18 views

How to build from webpack 4 to without breaking Content-Security-Policy of not using 'unsafe-eval'?

I'm trying to build through webpack 4 & npm . i facing issue of "EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the ...
gaurav's user avatar
  • 1,319
0 votes
0 answers
9 views

Trying to use dotenv or config in react app and getting: webpack < 5 used to include polyfills error, tried creating webpack config, doesn't work

i'm getting this error below trying to use both dotenv and config. I've got a Typescript React App, just installed and need to use environment variables. I don't have webpack installed as a dependency ...
Kevin A.'s user avatar
  • 137
0 votes
0 answers
18 views

How Can I Fix Missing WebP Images in Production Build with CRACO Configuration?

I'm working on a React project using Craco to manage Webpack configurations. My goal is to use WebP images for better performance, falling back to PNGs if WebP is not supported. I've already converted ...
Pierre F's user avatar
0 votes
0 answers
39 views

Module not found / build failed in my yarn workspaces monorepo

I am combining my React web application with my Expo React Native mobile app into a monorepo using yarn workspaces because they both need to share some utils, queries, etc. My file structure is ...
jchm's user avatar
  • 83
0 votes
0 answers
10 views

How to fix chaining loader issue

This is the error I am facing - common_app.chunk.js:158268 ./node_modules/@netless/synced-store/node_modules/value-enhancer/dist/index.js 27:29 Module parse failed: Unexpected token (27:29) You may ...
Anshu Bansal's user avatar
0 votes
0 answers
20 views

Deployment crashes when building with new image

I have an react, typescript and webpack application deployed using cloudflare pages. On the last modification I tried adding a new image on my page but the deployment fails to find that particular ...
William Blanchet Lafrenière's user avatar
0 votes
0 answers
40 views

Appropriate loader to handle this file type .mjs | webpack

I recently added @radix-ui/react-navigation-menu to my project. However, upon attempting to rebuild, I encountered the following error message: the error.. Interestingly, other components from the ...
AronikTV's user avatar
1 vote
0 answers
20 views

Webpack Duplicate Image File Issue and 404 Error with React App

I am working on a React project with Webpack to bundle my assets. My issue is that Webpack is creating duplicate image files in the dist/images directory, and my application is also encountering a 404 ...
Mag's user avatar
  • 11
0 votes
0 answers
22 views

Build failed in Storybook webpack config caused by svg

this error occurs when launching storybook, all svg that i use in the application cause an error in ./src/shared/assets/icons/about-20-20.svg ...etc Module build failed (from ./node_modules/@svgr/...
frik's user avatar
  • 1
-1 votes
0 answers
21 views

Error: webpack < 5 used to include polyfills for Node.js core modules by default [closed]

Before we are using Node.js version 16.17.0 in React.js project and now want to to upgrade in latest Node.js LTS version which is 20.15.1, but there is an issue. How can I fix this? ERROR in ./...
Kamlesh Singh's user avatar
0 votes
0 answers
25 views

React compiler, how to setup with craco/webpack

I migration in 18 to 19 react today. Read documentation, installed packages babel-plugin-react-compiler , for eslint eslint-plugin-react-compiler. I'm not that good at setting up webpack, but from the ...
Mr. Emil's user avatar
0 votes
1 answer
46 views

How do I trace errors in Next.js?

Error tracing is quite difficult in Next since it shows the path of the file in the build folder, how can I trace back to where the error originally occurred in my project folder structure? I have ...
OmarAbouzeid95's user avatar

15 30 50 per page
1
2 3 4 5
757