8000 version `0.9.0` causes import issues · Issue #1202 · shelljs/shelljs · GitHub
[go: up one dir, main page]

Skip to content
version 0.9.0 causes import issues #1202
@Wassap124

Description

@Wassap124

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:

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0