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

lite-element-ts: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite' #2010

Closed
2 of 3 tasks
geocine opened this issue Feb 13, 2021 · 0 comments

Comments

@geocine
Copy link

geocine commented Feb 13, 2021

  • Read the docs.
  • Use Vite >=2.0. (1.x is no longer supported)
  • If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.

Describe the bug

lit-element-ts throws an error during yarn build . Throws an error on the tsc step

yarn run v1.17.3
warning package.json: No license field
$ tsc && vite build
tsconfig.json:6:5 - error TS5069: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite'.

6     "emitDeclarationOnly": true,
      ~~~~~~~~~~~~~~~~~~~~~


Found 1 error.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproduction

  1. yarn create @vitejs/app
  2. choose lit-element-ts
  3. cd to the app directory
  4. yarn
  5. yarn build

System Info

  • vite version: 2.0.0-beta.69
  • Operating System: macOS 10.14.6
  • Node version: 14.15.1
  • Package manager (npm/yarn/pnpm) and version: yarn 1.17.3

Logs (Optional if provided reproduction)

No error during vite build error comes from tsc in

{
   "build": "tsc && vite build"
}
@geocine geocine changed the title Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite' lite-element-ts: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration' or option 'composite' Feb 13, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant