Error: Cannot find module 'numbro'

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:

This is the block I'm getting this error at:

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:

  1. you can see const numbro = require('numbro') in it. It's there by default, but it's possible you may have accidentally removed it.
  2. There isn't an erroneous line of code before 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

Hi Toolshed, I checked the 2 points you suggested:
I don't see any issue there.

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.

  1. Navigate to the Libraries (:package:) section

  2. Delete the existing numbro library added by default that's malfunctioning for you.

  3. Press the (:heavy_plus_sign:) button -> Add Javascript library -> search numbro

  4. Select any other library such as @jafri/numbro -> Add selected libraries

  5. Navigate to Settings (â›­) -> Javascript configuration

  6. 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:

Screenshot 2025-03-09 at 2.38.45 PM

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: