#Issue with pnpm (A type annotation is necessary)

1 messages · Page 1 of 1 (latest)

high comet
#

The inferred type of 'parse' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@sapphire/result'. This is likely not portable.A type annotation is necessary.ts(2742)

I saw this error before but how can I fix it. I don't want to switch to Yarn.
I have set this line, but this is not helping

||public-hoist-pattern[]=@sapphire||

cedar jewelBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

gloomy cave
high comet
#

Thank you so much, I finally found it
Promise<Option.None | Option.Some<{name:string, value:string}[]>>

cedar jewelBOT
gloomy cave
high comet
#

Indeed the final answer is
Promise<Option<{name:string, value:string}[]