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

Error ts(1046) in ./dist/index.d.ts #407

Open
florian-g2 opened this issue Dec 10, 2024 · 0 comments
Open

Error ts(1046) in ./dist/index.d.ts #407

florian-g2 opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@florian-g2
Copy link

florian-g2 commented Dec 10, 2024

Environment

Node.js v22.11.0
tsc 5.6.3

Reproduction

Run tsc on ./dist/index.d.ts:
pnpm run typecheck ./dist/index.d.ts

Describe the bug

The declare keyword is missing in front of the const version = "x.x.x".

Additional context

No response

Logs

vue-tsc --noEmit "./dist/index.d.ts" "--noEmit"

dist/index.d.ts:8:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.

8 const version = "3.14.5";
  ~~~~~


Found 1 error in dist/index.d.ts:8
@florian-g2 florian-g2 added the bug Something isn't working label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant