I'm getting this js package error in my workflow:
Error: Cannot find module 'numbro' Require stack: - /tmp/src/runMultipleBlocksHandler.js (line -30)
The package said to be missing is listed in the packages:
I'm getting this js package error in my workflow:
Error: Cannot find module 'numbro' Require stack: - /tmp/src/runMultipleBlocksHandler.js (line -30)
The package said to be missing is listed in the packages:
Hi @Takashi_Honzawa,
Are you on-prem? If so, what version? Does this occur with all new workflows?
Hi. In your workflow, please navigate to Settings (â›) -> Javascript configuration to make sure:
const numbro = require('numbro')
in it. It's there by default, but it's possible you may have accidentally removed it.const numbro = require('numbro')
.Let's start with this.
Hope this helps.
Abdul Wasae
Toolshed - Hire Retool Developers
Hi Abbey, no I'm on cloud
Yeah that's weird. Seems like a bug on the Retool end.
While the Retool team looks in to it, as a workaround, you can consider installing a fork of the numbro library.
Navigate to the Libraries () section
Delete the existing numbro
library added by default that's malfunctioning for you.
Press the () button -> Add Javascript library -> search numbro
Select any other library such as @jafri/numbro
-> Add selected libraries
Navigate to Settings (â›) -> Javascript configuration
Add the line of code: const numbro = require('@jafri/numbro')
Let's see if this works.
Abdul Wasae
Toolshed - Hire Retool Developers
Hi @Takashi_Honzawa,
I'm following up with our engineers about this issue, in the meantime I would recommend commenting out const numbro = require('numbro')
as explained here.
Hi @Toolshed, thank you for your advices.
I tried using @jafri/numbro:
However, now I get the error on the next library in the list, in this case (lodash)
Hi @AbbeyHernandez,
I commented out const numbro = require('numbro')
.
However, I just get the same exact error on another js package: