Questions tagged [webpack-merge]
5 questions
53
votes
2 answers
Getting Error from webpack-cli: "TypeError: merge is not a function" in webpack config
I'm using webpack-merge to combine two webpack.config files together but I keep getting the error
"TypeError: merge is not a function when I run the command "webpack --config ./config/webpack.config.prod.js"
Has anybody else run across this…

Baby Coder
- 759
- 1
- 7
- 14
7
votes
2 answers
Using webpack-merge to prepend loaders to a rules `use` array
I use webpack-merge to merge my webpack config files for dev and prod environments. To extract CSS in prod mode, I use the mini-css-extract-plugin. According to its documentation, I use it in place of the style-loader, which is only used during…

r0skar
- 8,338
- 14
- 50
- 69
2
votes
0 answers
How do you use webpack-merge and react?
I have been trying to make a webpack config for a react based app, it was working before I started using webpack-merge and had the single webpack.config.js file. I have done a lot of reading and I have not been able to find a solution and was…

Lyderies
- 43
- 6
2
votes
1 answer
TS2345 Argument of type is not assignable to parameter of type: using one module that's declared in another module
I've been trying to figure out an issue using Webpack, webpack-merge, and separate development Webpack files using TypeScript, and I've sort of realized that I need to declare a type alias function that is passed from a webpack.common.ts file to a…

rpivovar
- 3,150
- 13
- 41
- 79
0
votes
1 answer
TypeError: Merging undefined is not supported
I got this error when running $ quasar dev on my Vue project
~/project/node_modules/webpack-merge/dist/index.js:63
throw new TypeError("Merging undefined is not supported");
^
[ TypeError: Merging undefined is not…

angelokh
- 9,426
- 9
- 69
- 139