Skip to content

[p5.js 2.0+ Bug Report]: Missing type declarations #9190

Description

@m4lt3

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • WebGPU
  • p5.strands
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

2.3.3

Web browser and version

No response

Operating system

No response

Steps to reproduce this

Steps:

  1. install p5js via npm i p5
  2. create a sketch.ts file and add import p5 from "p5" or import "p5/global"
  3. Get the error Could not find a declaration file for module 'p5'
  4. look in the package.json to see there are types declared
  5. open the p5 folder in node_modules and find the files missing
  6. Surprised Pikachu Face

Snippet:

import p5 from "p5";

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions