vuejs / vue-loader

📦 Webpack loader for Vue.js components
MIT License
4.99k stars 915 forks source link

export 'Ref' was not found in 'vue' #1918

Closed dqkit closed 2 years ago

dqkit commented 2 years ago

when is use the inject ref object. code: const test = inject<Ref>('testValue');

it will pop up this warning. how can i fix it?

WARNING in ./src/components/HelloWorld.ts?vue&type=script&lang=js 9:28-31 "export 'Ref' was not found in 'vue' @ ./src/components/HelloWorld.ts?vue&type=script&lang=js @ ./src/components/HelloWorld.vue @ ./src/App.ts?vue&type=script&lang=js @ ./src/App.ts?vue&type=script&lang=js @ ./src/App.vue @ ./src/main.ts

vue-bot commented 2 years ago

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!