Skip to content

TypeError is not a function for file write functions #1034

Open
@sebastianwessel

Description

@sebastianwessel
  • Operating System: macOS 14.2.1 (23C71)
  • Node.js version: 20.11
  • fs-extra version: 11.2.0
  • @types/fs-extra version: 11.0.4
  • typescript version: 5.3.2

writeJson/writeJSON and outputJson/outputJSON and corresponding sync functions are throwing.

Example:

import * as fsExtra from 'fs-extra'

await fsExtra.writeJson(fileName, {some:'content'})

Error during execution:

TypeError: fsExtra.[writeJson] is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions