#1202·shelljs

version `0.9.0` causes import issues

Author: Wassap124Created Mar 23, 2025Updated May 9, 2025

Hi

Ever since trying to upgrade from version 0.8.5 to 0.9.x, the code wont transpile, with various errors on random packages (i.e - NOT on shelljs),

for example:

typescript
    TypeError: Cannot read properties of undefined (reading 'length')

      4 | import _ from 'lodash';
      5 | import shell from 'shelljs';
    > 6 | import os from 'os';
        |                                                         ^
      7 | import path from 'path';

the thing is, it errors out an whatever package is line 6 (for that file). and again - that only occurs when i try to upgrade shelljs from 0.8.5 to 0.9.x.

i've seen the migration guide

  1. we use node v20
  2. we don't use sed

so everything should work iiuc

we use ESNext on our tsconfig.json if that matters