将“vue-enterprise-boilerplate”转换为打字稿库的问题?

Sey*_*don 6 enterprise typescript vuejs2

我正在尝试在vue-enterprise-boilerplate 中使用打字稿。但是在这个问题https://github.com/chrisvfritz/vue-enterprise-boilerplate/issues/118 中已经说过流程存在一些问题。

我尝试了其他解决方案来使其工作,例如使用“vue add @vue/typescript”,但没有明确说明我应该选择哪个配置。

1? Use class-style component syntax?(y/N)
2? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? (y/N)
3? Convert all .js files to .ts? (y/N)
4? Allow .js files to be compiled? (y/N)
Run Code Online (Sandbox Code Playgroud)

编号 3q,告诉我选择 babel 到现代,而在那期作者告诉我:

使用 @vue/cli-plugin-typescript 而不是 @vue/cli-plugin-babel(同时删除 .babelrc.js)。

我也这样做了,但是我遇到了一些关于无法找到某些模块的新错误,当我尝试修复它们时,webpack 配置出现了一些新错误......是否有人尝试过这些步骤并且有一个关于这个问题的逐步解决方案。