-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Bug Report Checklist
- I have tried restarting my IDE and the issue persists.
- I have pulled the latest
mainbranch of the repository. - I have searched for related issues and found none that matched my issue.
Expected
- Have no misleading error during dev
- Be able to auto-import dedent
Actual
I installed dedent with pnpm install dmnd/dedent
Then Typescript can't find the declaration but at runtime (Vite devServer) my strings are dedented:

Also trying to auto-import it with https://github.com/unplugin/unplugin-auto-import configured with
'dedent': [
[`default`, `dedent`],
],Additional Info
-
My project is a pnpm monorepo with one tsconfig per package. dedent is a dep of only one of the packages
-
When I go to
node_modules/dedent, thedistfolder is missing. -
When I install the dev dependencies and build it, the
distfolder is created and everything works well -
so I run a
pnpm remove dedentthenpnpm install dedentand everythin works well now (removing it first is mandatory) -
I open this bug anyway as it may be useful to add an 'install' section to the README to avoid this. I personally didn't know that pnpm would automatically map to github if I added the vendor in the install command.

