Skip to content

A problem in that project use vue with typescript #9710

Closed Answered by chenxch
surkaa asked this question in Help/Questions
Discussion options

You must be logged in to vote
// tsconfig.ts add
{
"compilerOptions": {
    "target": "ESNext",
    "useDefineForClassFields": true,
    "module": "ESNext",
    "moduleResolution": "Node",
    "strict": true,
    "jsx": "preserve",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "esModuleInterop": true,
    "lib": ["ESNext", "DOM", "DOM.Iterable"],
    "skipLibCheck": true,
    "allowSyntheticDefaultImports": true,
    "noEmit": true,
    "allowJs": true,
    "paths": {
      "@/*": ["./src/*"]
    },
    "types": ["@vue/runtime-core"]
  },
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@surkaa
Comment options

@chenxch
Comment options

@surkaa
Comment options

Answer selected by surkaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants