TypeError: e.replace is not a function in tilib.js:44:44 #123
Labels
bug
It's life Jim but not as we know it!
enhancement
Improvements to code or new features
Fixed
Phew, think I got away with it.
Software and Package Versions
node -v: 12.16.1
OS: Windows 10
npm -v: 6.13.4
uibuilder: 3.2.0
chrome (latest)
How is Node-RED installed? Where is uibuilder installed?
regular node-red install - uibuilder installed via palette
The issue: after installing
axios
via the uibuilder manage frontend libraries, accessinguibuilder details
results in an error.clicking the [uibuilder details] button, this happens...
Debugging in vscode reveals...
I have put a temporary fix to handle
pj.browser
being an object (in uibuilder.js:1414) ...... but perhaps it might be better to default to
pj.main
?edit...
FYI: Looking in axios folder, there is actually a browser ready
dist
folder with axios.js and axios.min.jsThe hack i did above works to prevent the error I seen, but I imagine what the end user wants from uibuilder is for the Vendor Client Libraries list to show the browser ready code? .
What might be of interest is the axios package.json has a couple of potentially useful props...
perhaps some logic in uibuilder.js:1414 could first check some of these fields before looking to main or browser props?
edit 2...
So perhaps this is a better (potential) fix than the one above
uiblib.js:511
...this give us the below output in the uibuilder details pages...
The text was updated successfully, but these errors were encountered: