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

default export of index.d.ts potential problem? #3114

Closed
sawmurai opened this issue May 3, 2023 · 0 comments
Closed

default export of index.d.ts potential problem? #3114

sawmurai opened this issue May 3, 2023 · 0 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@sawmurai
Copy link

sawmurai commented May 3, 2023

Hi!

Since this line was introduced a new typescript error popped up in our build process:

../../node_modules/vue-component-type-helpers/index.d.ts:1:16 - error TS2693: 'string' only refers to a type, but is being used as a value here.

1 export default string;
                 ~~~~~~


Found 1 error in ../../node_modules/vue-component-type-helpers/index.d.ts:1

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

We typecheck via vue-tsc, our typescript config looks like that:

{
  "compilerOptions": {
    "target": "es2019",
    "module": "esnext",
    "declaration": true,
    "declarationDir": "./lib/types",
    "strict": true,
    "jsx": "preserve",
    "importHelpers": true,
    "moduleResolution": "node",
    "experimentalDecorators": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "sourceMap": true,
    "resolveJsonModule": true,
    "baseUrl": ".",
    "types": ["webpack-env", "jest", "node"],
    "paths": {
      "@/*": ["src/*"]
    },
    "lib": ["esnext", "dom", "dom.iterable", "scripthost"]
  },
  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
  "exclude": ["node_modules"],
  "vueCompilerOptions": {
    "target": 3
  }
}
@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

2 participants