Skip to content

yarn test fails because missing node types #15

@yatesco

Description

@yatesco

A clean pull, yarn install then yarn test gives the following errors:

❯ yarn test

> mantine-vite-template@0.0.0 typecheck
> tsc --noEmit

error TS2688: Cannot find type definition file for 'node'.
  The file is in the program because:
    Entry point of type library 'node' specified in compilerOptions

  tsconfig.json:3:15
    3     "types": ["node", "@testing-library/jest-dom", "vitest/globals"],
                    ~~~~~~
    File is entry point of type library specified here.


Found 1 error.

I solved this by yarn add -D @types/node but I'm only slightly more skilled than a monkey throwing spaghetti at a wall to see what sticks ;-). Shall I add a PR for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions