Openzeppelin contract not found in remix

Hey @Dainiuxas645, welcome :slight_smile:

This seems to be a version mismatch, the reason is that Remix downloads and caches the dependencies, so if you're using an old Remix workspace with already cached dependencies, you might experience this since the new imports are being downloaded with the latest version.

Here's the easiest solution, which is starting a Remix workspace from scratch:

An alternative might be explicitly setting the version on each import but may not work if you're using other dependency that imports OZ contracts

import "@openzeppelin/contracts@4.8.2/..."

I see your issue is still in VSCode. This shouldn't happen in a local environment, so curious to know, is it the same issue? Can you share the compilation error (if any)?

Best