You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type error: Couldnotfindadeclarationfileformodule'universal-cookie'.'/home/user/project/node_modules/.pnpm/[email protected]/node_modules/universal-cookie/esm/index.mjs'implicitlyhasan'any'type.Therearetypesat'/home/user/project/node_modules/universal-cookie/esm/index.d.ts',butthisresultcouldnotberesolvedwhenrespectingpackage.json"exports".The'universal-cookie'librarymayneedtoupdateitspackage.jsonortypings.>8|importCookiesfrom'universal-cookie';|^
Something similar happens with react-cookie:
Doing the next import:
import{useCookies}from"react-cookie";
Gives the next error:
Type error: Couldnotfindadeclarationfileformodule'react-cookie'.'/home/user/project/node_modules/.pnpm/[email protected][email protected]/node_modules/react-cookie/esm/index.mjs'implicitlyhasan'any'type.Therearetypesat'/home/user/project/node_modules/react-cookie/esm/index.d.ts',butthisresultcouldnotberesolvedwhenrespectingpackage.json"exports".The'react-cookie'librarymayneedtoupdateitspackage.jsonortypings.1|importReactfrom"react";2|import{useRouter}from"next/router";>3|import{useCookies}from"react-cookie";|^
This only happened when i tried to update any of them to 7.0.0.
Using pnpm version 8.14.0 as package manager and Nextjs 14.0.4 as framework.
When doing the following import:
I get the following error:
Something similar happens with
react-cookie
:Doing the next import:
Gives the next error:
This only happened when i tried to update any of them to
7.0.0
.Using
pnpm
version8.14.0
as package manager and Nextjs14.0.4
as framework.package.json
dependencies:The text was updated successfully, but these errors were encountered: