DEV Community

loading...
Cover image for How to add next package

How to add next package

takuzen profile image Takuzen ・1 min read

Once when I installed some npm package, all next-related API(such as link, image, and so on) showed errors saying they cannot be found.

So as to fix them, I had to add them again.

At that time,

yarn add next

this single line fixed the problem!

Hope this would help somebody too:)

Discussion (0)

pic
Editor guide