https://github.com/albinodrought/vue-12750-repro
Reproduce https://github.com/vuejs/vue/issues/12750
https://github.com/albinodrought/vue-12750-repro
Last synced: about 2 months ago
JSON representation
Reproduce https://github.com/vuejs/vue/issues/12750
- Host: GitHub
- URL: https://github.com/albinodrought/vue-12750-repro
- Owner: AlbinoDrought
- Created: 2022-10-17T20:22:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-17T21:05:47.000Z (over 2 years ago)
- Last Synced: 2025-02-07T02:46:29.085Z (3 months ago)
- Language: Vue
- Size: 206 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproduce https://github.com/vuejs/vue/issues/12750
- `vue create` with this preset: Babel, Typescript (class component), Linter
```json
{
"useTaobaoRegistry": false,
"latestVersion": "5.0.8",
"lastChecked": 1666036674630,
"presets": {
"vue-12750-repro": {
"useConfigFiles": true,
"plugins": {
"@vue/cli-plugin-babel": {},
"@vue/cli-plugin-typescript": {
"classComponent": true,
"useTsWithBabel": true
},
"@vue/cli-plugin-eslint": {
"config": "base",
"lintOn": [
"save"
]
}
},
"vueVersion": "2"
}
}
}
```- Install vuelidate and types: `npm install --save @types/vuelidate vuelidate`
- Add vuelidate to a component: [see HelloWorld.vue](./src/components/HelloWorld.vue)
- Try to build: `npm run build`:
```
RangeError: Maximum call stack size exceeded
at getMappedType (/vue-12750/node_modules/typescript/lib/typescript.js:61620:31)
at getMappedType (/vue-12750/node_modules/typescript/lib/typescript.js:61637:30)
at getMappedType (/vue-12750/node_modules/typescript/lib/typescript.js:61637:30)
at /vue-12750/node_modules/typescript/lib/typescript.js:61768:82
at Object.map (/vue-12750/node_modules/typescript/lib/typescript.js:652:29)
at getObjectTypeInstantiation (/vue-12750/node_modules/typescript/lib/typescript.js:61768:40)
at instantiateTypeWorker (/vue-12750/node_modules/typescript/lib/typescript.js:61999:28)
at instantiateTypeWithAlias (/vue-12750/node_modules/typescript/lib/typescript.js:61979:26)
at instantiateType (/vue-12750/node_modules/typescript/lib/typescript.js:61962:37)
at instantiateList (/vue-12750/node_modules/typescript/lib/typescript.js:61595:34)
```