After adding p5 and @types/p5 to my project, I imported p5 in the following way:
import * as p5 from 'p5'
However, when I tried using p5.createImage(100, 100), I encountered this error message indicating that 'createImage' is not a recognized function from p5:
Property 'createImage' does not exist on type 'typeof import("D:/dev/repositories/Jeff/node_modules/@types/p5/index.d.ts")'
I am also not receiving any hints for the p5-methods, leading me to believe that I may have set it up incorrectly. I have attempted different approaches, including namespace or module declarations, but have not been successful. Can anyone provide assistance?
If you would like to review my setup, please visit: https://github.com/Septias/Carcasonne-Online/blob/master/src/pages/PeaceBuilder.vue