Closed nembal closed 10 months ago
Hi can you provide a reproduction that can let me to investigate? Thanks
Same issue here, private corporate repo, so can't provide code example.
but using pnpm
and get this.
I published a new patch 0.5.6 for typing fix, should be good now. Can you upgrade to see if it's fixed?
I feel you're using "moduleResolution": "node"
in tsconfig.json if y'all can confirm. Using value "moduleResolution": "bundler"
should also work without upgrade.
Magic. It builds now, thanks a lot.
I tested it without updating the package, and it was enough to change to "moduleResolution":
from "node"
to "bundler"
Thanks a lot
@nembal good to hear that, does 0.5.6 also work for you without chaging moduleResolution
?
I recently switched my project from npm to pnpm. After the switch, I (re)installed sugar-high using the
pnpm add sugar-high
command. The library was successfully added to the node_modules folder. However, when I tried to import and use the highlight function from sugar-high, the module could not be resolved.As a temporary workaround, I've removed syntax highlighting from my project. However, having syntax highlighting working would be ideal.
Steps to Reproduce:
pnpm i
Expected Behavior:
The sugar-high module should be resolved and the highlight function should be imported successfully.
Actual Behavior:
The sugar-high module could not be resolved, resulting in a build failure.
Error Message: Type error: Cannot find module 'sugar-high' or its corresponding type declarations.
Environment:
Additional Context:
Is there a specific way to resolve this issue with pnpm? Any help would be greatly appreciated.
Thank you!