Skip to main content

All Questions

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
-1 votes
0 answers
18 views

Webpack : Not getting desired folder tree of build files

I am working on an application and using Webpack to serve the build files. In the Chrome developer tools -> Sources, I am not getting the folder tree as expected. Here's the actual folder structure ...
PRADHYUMN SHARMA's user avatar
0 votes
0 answers
21 views

Invalid hook call in react-redux provider

I am trying to migrate from Parcel 1.0 to Webpack 4, I am using React 16.14, Node: 18.20, Npm 10.7. Getting below error when running webpack serve Invalid hook call. Hooks can only be called inside of ...
Vivek Tiwary's user avatar
1 vote
1 answer
36 views

Webpack configuration not working for jsx file with babel lorder

When runing the react project which is configured with webpack and babel loder is giving and error saying unexpected token in jsx files.Please find bellow error snippit ERROR in ./src/index.js 10:12 ...
Tharindu Sandaruwan's user avatar
0 votes
0 answers
23 views

The webpack bundle created and stored in the project directory is different than the one used to run the application with webpack-dev-server

When I run the command npm run build (webpack), webpack builds a folder with all of the static files bundled together in bundle.js. Then, when I run the command npm run dev (webpack serve), it opens ...
Sincere Tuitt's user avatar
0 votes
1 answer
46 views

Webpack - Typescript aliases error in production mode only

I'm having a problem with a React project configured with Webpack and using Typescript. Containerized with Docker (CI/CD with gitlab) . Before we didn't use aliases on our project and builds in ...
Minos's user avatar
  • 266
1 vote
0 answers
78 views

ModuleFederation with react - not able to load multiple remotes into main

I am trying to learn microfrontend with reacts using modeuleFederation but facing an issue. I have 3 projects inside my director which are like main - running on port 8080 remote 1 (products) - ...
Naruto's user avatar
  • 109
4 votes
3 answers
2k views

Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. "_assetEmittingPreviousFiles"

I am using webpack - v5.90.3, webpack-cli - v5.1.4, webpack-dev-server - v5.0.2 In my webpack.config.dev.js: const path = require('path'); const webpack = require('webpack'); module.exports = { ...
Jason1998's user avatar
0 votes
0 answers
103 views

how to solve the 'Failed to load resource: cannot parse response' on safari

I have a web app built in React and web pack. The problem is When I make any request to api on Safari, the error 'Failed to load resource: cannot parse response' appears. It works fine on Chrome or ...
Bui Ha's user avatar
  • 1
0 votes
1 answer
28 views

How to apply resolveExtensions configuration to exposed components using Webpack

I have used resolveExtensions in webpack config as follows. const commonOpts = { isExternalEnv: true, outputPath: 'dist/production/www', resolveExtensions: ['.js', '.ts', '.json', '.jsx', '.scss'...
Deepali Jadhav's user avatar
-1 votes
1 answer
218 views

React Router V6: Cannot GET route

I'm attempting to set up some basic routing but when I attempt to navigate to my Drug link, I get a "Cannot GET {route}". I'm unsure as to why this occurs, and I'd appreciate if anyone could ...
skoleosho97's user avatar
0 votes
1 answer
308 views

"Module not found" Error When Starting a React Project | webpack-dev-server error

I've been encountering a consistent 'Module not found' error whenever I run npm start or yarn start on my local machine. This error occurs every time I create a new project on my local machine but ...
Ravinder's user avatar
0 votes
0 answers
53 views

React Router Not Working Correctly with Manual URL Entry

I have a simple React Route set up with Nested Routes using react-router-dom <Link to={"/"} replace={false}>Home</Link> <Link to={"/routeA/pageA"} replace={false}>...
TheLovelySausage's user avatar
1 vote
0 answers
49 views

Errors started to point to the bundle

For some reason, the error outputs for my React project now point to the bundle and not to my code: Based on the linked post, I added the webpack.config.js file: module.exports = { devtool: '#...
AlwaysLearning's user avatar
0 votes
0 answers
82 views

webpack.config,js: Failed to load resource: the server responded with a status of 404 (Not Found)

The problem is that I get this very error Failed to load resource: the server responded with a status of 404 (Not Found) when I use webpack-dev-server. But if I just build the project then I can run ...
Rakesh's user avatar
  • 31

15 30 50 per page
1
2 3 4 5
48