Openzeppelin contracts not found when truffle compile

Hello.
Always do the same way:
truffle init
npm init -y
npm install @openzeppelin/contracts

Contracts in node_modules/ exists.
All looks like always, but when i try to truffle compile:

ParserError: Source "@openzeppelin/token/ERC721/ERC721.sol" not found

My import:
import "@openzeppelin/token/ERC721/ERC721.sol";

I'm trying to change path manualy to this contracts but have the same error.
Reinstall all project - same.
Install solc for this 0.8.0, specify truffle config - nothing.

Never use something 0.8.0+, any problems with it, or what?

Hello @Ched

The correct import path is

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
1 Like

Thank you, missed out :slight_smile: