Openzepplin not found either you install it using NPM or import straight from the Github

Hi, anyone can help me please, i have been stuck in this for a while and cant get the answer, so my problem is everytime i try to complie my smart contract, i always have open zepplin not found. even i change it using github version, it still say not found,

my contract is :
'// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";

import "@openzeppelin/contracts/math/Math.sol";

import "./lib/SafeMath8.sol";

import "./owner/Operator.sol";

import "./interfaces/IOracle.sol";

contract secret is ERC20Burnable, Operator {

using SafeMath8 for uint8;

using SafeMath for uint256;

'

i'm using the local host to import all my smart contract into Remix IDE. The openzeppelin file is already there, and in the top of the folder. Any one have the solution for this issues?

I'm trying to build some Tomb forks DeFi

Thankyou

your @openzeppelin links are wrong, use:
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";

Hi, thankyou for your answer, i have the openzeppelin contract inside my folder that i import using remixd local host

The directory are correct from the file folder.
Or should i change the version of my local openzeppelin files?

Event i change the contract as you suggest, now it showing not found @openzeppelin/.../.../gsn/context.sol

Please answer, im desperate for this issiues.
Thankyou

I guess your imported contracts have dependencies that are missing on your local folder, I also see you are mixing old and new contracts since SafeMath is obsolete in solidity >=0.8.0 ...
Would need to see the whole contract to help you more.

Hi, thankyou for your help, i try to use another contract and still get the same issues

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";

import "@openzeppelin/contracts/math/Math.sol";

import "./owner/Operator.sol";

import "./interfaces/IOracle.sol";

// V3S FINANCE

contract V3SToken is ERC20Burnable, Operator {

using SafeMath for uint256;

// Supply used to launch in LP

uint256 public constant INITIAL_LAUNCH_DISTRIBUTION = 900000000 ether; // 1 billion of V3S

// Have the rewards been distributed to the pools

bool public rewardPoolDistributed = false;

/**

 * @notice Constructs the V3S ERC-20 contract.

 */

constructor() public ERC20("V3SToken", "V3S") {

    _mint(msg.sender, 100000000 ether);

}

it still say not found @openzeppelin/contracts/math/Math.sol in the compiler.
Do i need to install the openzepplin in the remix? so the import function will work

Thankyou

You can find everything on github, your Math.sol path is wrong:

import "@openzeppelin/contracts/utils/math/Math.sol";

You're using an old version of OpenZeppelin that has different import paths. Look in your node modules to find the right path.