@types/p5 not find like class in typeScript

In my old version, I make something like write, and that’s work. But it’s a old file types. I want use a the latest P5 version, download from npmand when read the instruction i’ve a feeling the folder p5must add in the 'node-moduleand the organisation of type file file is completetly different, plus when I put the foldertypes` where it work before that’s don’t work :frowning:

older style that’s work :slight_smile:

new style with newest types version that’s don’t work

I try try different path and different place for folder but that’s don’t work.

import Position from './Z_Position'
//import * as _ from "p5";
////<reference path="./node_modules/@types/p5/index.d.ts"/>
////<reference path="./types/p5/index.d.ts"/>
///<reference path="types/p5/index.d.ts"/>

the file index there is class p5 so i suppose i must target this file to start ?

1 Like