An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
引入ts文件,不用带.ts
配置问题汇总
安装完 pinia,引用报错
"hasInjectionContext" is not exported by "node_modules/vue-demi/lib/index.mjs", imported by "node_modules/pinia/dist/pinia.mjs".
解决方案:
[要升级vue3 到3.3.x](https://bytemeta.vip/repo/posva/pinia/issues/2210) 没生效...
尝试降级pinia,ok了。