Simple example how to use Static Image in OpenLayers v7.3.0. This project made from Static Image example from OpenLayers official team.
https://jasjuslover.github.io/wano-maps/
Simply clone and install the dependencies.
// after clone the repo
cd wano-maps
npm install
or you can using yarn or pnpm too. To run this project, simply run this command in the root project.
npm run start