Is it possible to have p5js code in a static 11ty starter?

Is it possible to have p5js code in a static 11ty starter?

I tried before but got error message about mime type

Can you please provide a bit more context. On what line is it complaining. How are you including p5?
You should just be able to add p5 to your <head> tag and have it work.