Skip to content

📝 Docs: add an 'install' section to the README? #83

@jclaveau

Description

@jclaveau

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch 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:
image

Also trying to auto-import it with https://github.com/unplugin/unplugin-auto-import configured with

              'dedent': [
                [`default`, `dedent`],
              ],

I get
image

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, the dist folder is missing.

  • When I install the dev dependencies and build it, the dist folder is created and everything works well

  • Investigating I realized that my package.json was odd
    image

  • so I run a pnpm remove dedent then pnpm install dedent and 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions