Error: url.replace is not a function
See original GitHub issueBug report
yarn start and getting error . Same error with css plugin, So I think if this error happens not just in html webpack plugin then it can be related to Webpack
https://github.com/webpack-contrib/mini-css-extract-plugin/issues/793
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
- yarn start
- wait for build
What is the expected behavior?
No error
Other relevant information: webpack version: “5.46.0” html-webpack-plugin: “5.3.2”, Node.js version: 14.17.1 Operating System: windows 11 wsl 2
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Error: TypeError: url.replace is not a function #731 - GitHub
Location: webpack:///./node_modules/css-loader/lib/url/escape.js?
Read more >var.replace is not a function - javascript - Stack Overflow
I'm using the below code to try to trim the string in Javascript but am getting the error mentioned in ...
Read more >TypeError: replace is not a function in JavaScript | bobbyhadz
The "replace is not a function" error occurs when we call the replace() method on a value that is not of type string...
Read more >TypeError: replace is not a function in JavaScript - Java2Blog
TypeError : .replace is not a function occurs when we call replace() function on object which is not an string. replace() function can...
Read more >Fixed - Uncaught TypeError: a.replace is not a function
Change log: Prevent a JS error related to app badge updates if the input value isn't the expected type.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok! Give me some time!
Problem here:
you need to use:
otherwise
../src/assets/icons/favicon.svg
generate svgr output i.e. URL and react component, but it can be used inside HTML file