Skip to content

fix: Missing @types/node in devDependencies #3

Description

@amirrezaalasti

Description

Running the linter before building the workspace throws TypeScript errors related to missing Node.js core modules. Specifically, the TypeScript compiler cannot find types for fs and path in demo/benchmark.ts because @types/node is missing from the project's root devDependencies.

Steps to Reproduce

  1. Clone the repository and install dependencies (e.g., npm install).
  2. Run the command npm run lint before building the workspace.
  3. Observe the TypeScript compilation errors in the console.

Expected Behavior

The linter should execute and pass successfully without throwing type errors for standard Node.js built-in modules.

Actual Behavior / Error Output

demo/benchmark.ts: TS2591: Cannot find name 'fs'
demo/benchmark.ts: TS2591: Cannot find name 'path'

Environment Details

  • OS: Any
  • Node.js Version: Any
  • Browser (if applicable): N/A
  • WCI Package & Version: Monorepo main branch

Additional Context

Adding @types/node to devDependencies in the root package.json will resolve these TypeScript errors out of the box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions