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

Webpack-dev-server serves a directory list instead of the app page on webpack 5

I have looked at various solutions to this but none of them works for me, feel free to ask for more details const webpack = require("webpack"); const webpackDevServer = require("webpack-...
Mayank's user avatar
  • 1
-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
18 views

How to attach url params to webpack dev server host?

I use webpack dev-server with npm and having simple config file all works perfectly except that I would like to have dev-server runnning the browser with additional url params attached to 'host' url. ...
northmantif's user avatar
0 votes
0 answers
27 views

My webpack is building old lodash version

I'm having some troubles with my webpack when building source for deployment. Built files are always created with [email protected]. How can I exclude the lodash from the build process or upgrade it to ...
sieusaopolo15'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
36 views

webpack is not compiling the code and writing it into output file

I am new to webpack and currently trying to see how it works, it should compile my typescript code and put the equivalent JS in the output file when I run the following command webpack serve here is ...
shoaib sabir's user avatar
0 votes
0 answers
9 views

webpack: suppress second "webpack compile successfully" line with constant timestamp

I am able to suppress webpack logs to below. Logs for 3 compilations below: Webpack bundle stats plugin took 10174 ms 2024-06-14 13:42:29: webpack compiled successfully 2024-06-14 13:40:31: webpack ...
Deepak Yadav's user avatar
0 votes
0 answers
9 views

Webpack not watching SCSS glob imported files

I am using webpack to compile my scss files which works fine when initially running npx webpack or npx webpack --watch. When using npx webpack --watch, only my declared SCSS file (app.scss) in my ...
kymchee's user avatar
  • 19
1 vote
0 answers
30 views

DevServer is not reloading files after html-bundler-webpack-plugin was installed on WebPack5

Hello Guys I've been working on creating a local dev env using Webpack to develop sites, the devServer.watchFiles was working until I installed the html-bundler-webpack-plugin I've tried all read all ...
Legend10's user avatar
1 vote
1 answer
23 views

why is my weback server not reloading live? [closed]

I have just installed a Webpack server which also works. But it annoys me that I always have to reload the browser. So I tried to improve this with hot;true. It still does not work. This is a plain ...
Aaron Stupf's user avatar
0 votes
0 answers
16 views

webpack asset/resource Invalid configuration

Getting this Error in webpack configuration file, can anyone guide me. Error: ___ Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API ...
SAMEER's user avatar
  • 33
0 votes
1 answer
103 views

Django and Webpack5 - Implementing modern Javascript Tools

I am working on a Django project and want to enhance the front-end using npm and webpack5. My web development experience has been primarily with Django, and I'm new to npm and webpack. I've run into a ...
Franklin's user avatar
  • 121
0 votes
0 answers
37 views

how to get bundles in the directory defined by output.path when using webpack-dev-server

I'm reading the webpack5 doc. In the document's Guides -> Development -> Choosing a Development Tool -> Using webpack-dev-server,there is a tip as follows webpack-dev-server serves bundled ...
user24948077's user avatar

15 30 50 per page
1
2 3 4 5
173