Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lit-starter-ts] missing type definition for mocha #4594

Open
majidsajadi opened this issue Mar 24, 2024 · 0 comments · May be fixed by #4595
Open

[lit-starter-ts] missing type definition for mocha #4594

majidsajadi opened this issue Mar 24, 2024 · 0 comments · May be fixed by #4595

Comments

@majidsajadi
Copy link

Which package(s) are affected?

Starter Kits (@lit/lit-starter-js / @lit/lit-starter-ts)

Description

I tried to use lit-element-starter-ts to check out docs functionality but pnpm run docs throws a type error.

error TS2688: Cannot find type definition file for 'mocha'.
  The file is in the program because:
    Entry point of type library 'mocha' specified in compilerOptions

  tsconfig.json:30:15
    30     "types": ["mocha"]
                     ~~~~~~~
    File is entry point of type library specified here.


Found 1 error.

Reproduction

git clone https://github.com/lit/lit-element-starter-ts
cd lit-element-starter-ts
pnpm i
pnpm run docs

Workaround

pnpm i -D @types/mocha

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

lit 3.1.2

Browser/OS/Node environment

node v21.6.2
pnpm v8.15.1

@majidsajadi majidsajadi changed the title missing type definition for mocha [lit-starter-ts] missing type definition for mocha Mar 24, 2024
@majidsajadi majidsajadi linked a pull request Mar 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant