Skip to content

Cannot find module 'fs-extra/esm' or its corresponding type declarations.ts(2307) #979

@mtdvlpr

Description

@mtdvlpr

Both importing from fs-extra and fs-extra/esm doesn't work anymore in v11.0.0. I tried the following lines in my fs.ts file:

import { ensureDirSync, ensureFileSync, removeSync } from 'fs-extra'
import { ensureDirSync, ensureFileSync, removeSync } from 'fs-extra/esm'

The top line does work in v10.1.0. Am I doing something wrong?

  • Operating System: Ubuntu 22.04.1 LTS
  • Node.js version: v16.18.0
  • fs-extra version: v11.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions