'TypeError: cleanUrl is not a function while creating a React Project
Hey everybody I am getting this error after hosting a website on firebase or I am not sure about it.


It's the replace-info.js screenshot.
I am not able to find the solution on stackoverflow or on other website.
Solution 1:[1]
This error had appeared on my side after npm update npm@lastest
What I did to fix it:
- Go to AppData\Roaming\npm\node_modules\npm\node_modules\npm-registry-fetch\lib\index.js.
- Add
module.exports.cleanUrl = require('./clean-url.js')at the end of the file.
P.S. I just copied it from there https://github.com/npm/npm-registry-fetch/blob/main/lib/index.js
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Revan2107 |
