Skip to content

Change the way import is written #432

Open
@Akira-Taniguchi

Description

@Akira-Taniguchi

Description

Change the description method from absolute path to relative path

Solution

before

import {Pausable} from "@openzeppelin/contracts/lifecycle/Pausable.sol";
import {IAllocator} from "contracts/src/allocator/IAllocator.sol";

after

import "../../../@openzeppelin/contracts/lifecycle/Pausable.sol";
import "./IAllocator.sol";

reason:
Dependencies can't be resolved when referring to a contract after npm install

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions