Skip to main content

All Questions

0 votes
0 answers
18 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
25 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
22 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
42 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
  • 256
1 vote
0 answers
75 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
3 votes
3 answers
1k 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
98 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
209 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
295 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
48 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
81 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
0 votes
0 answers
141 views

Webpack build stuck on middle of creation of bundle

I use webpack to build and tun my app locally. I use babel, ts loader, sass loader. I have pretty big codebase. Couple days ago I found that webpack cant build my app. It stuck on bundling job on 48% ...
Mykhailo Konstantynovskyi's user avatar
0 votes
0 answers
166 views

Webpack dev server with flask html templates

I am trying to use Flask to send an html view (template) and React for the front end, but I am having issues setting up the webpack-dev-server on the front end. My confusion is, my Flask app is ...
henhen's user avatar
  • 1,133

15 30 50 per page
1
2 3 4 5
48