We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
报错信息:Identifier '_createVNode' has already been declared. (15:80)
复现demo:
<script lang="jsx"> import { ref } from 'vue' export default { setup(){ const msg=ref() const aa = () => <div>xxx</div> return {msg,aa} } } </script> <template> <h1>{{ msg }}</h1> <component :is="aa"></component> <input v-model="msg" /> </template>
复现链接:https://repl-vuejs.vercel.app/#eNp9UstqwzAQ/JVFlySQxpT2ZGxDW3JoD21pe9RF2GtHqSwLPVyD8b93LZM0hxIwZjUzK81oNbIHY3Z9QJayzJVWGg9K6Cbn7OgGzgquZWs662EEizVMUNuuhRV1rLjGIVIV1iIoknAN4NAHs97EGqDstPPQuian7vXmEhQCclhvIC8gq2RfDMOQJXOxiCztYzWM1LsVYppB+tGXJYtP0tHCY2uU8Bi7ssNtMY7zcTBNWUKriJYdRdCoPaTSUTIhKFiWnOFFJbUJHvqbtqtQkYp24QwSIrPk4hS2Zd5Rglo2u6PrNF1czMrZvJ9UaN+Ml5SQs3S5kZkTSnU/LxHzNuD2hJcHLL//wePlp1S8W3Roe+TszHlhG/QLvf98xYHqM0nugyL1FfIDXafC7HGRPQZdke0LXXT7HOcudfPl9oNH7U6hZqNxHFHPGb2FpyvR/+ze7e5PY2TTLxIY0Sg=
如果使用setup语法糖则没有此问题:
<script setup lang="jsx"> import { ref } from 'vue' const aa = () => <div>xxx</div> const msg = ref('Hello World!') </script> <template> <h1>{{ msg }}</h1> <component :is="aa"></component> <input v-model="msg" /> </template>
The text was updated successfully, but these errors were encountered:
48325f9
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
报错信息:Identifier '_createVNode' has already been declared. (15:80)
复现demo:
复现链接:https://repl-vuejs.vercel.app/#eNp9UstqwzAQ/JVFlySQxpT2ZGxDW3JoD21pe9RF2GtHqSwLPVyD8b93LZM0hxIwZjUzK81oNbIHY3Z9QJayzJVWGg9K6Cbn7OgGzgquZWs662EEizVMUNuuhRV1rLjGIVIV1iIoknAN4NAHs97EGqDstPPQuian7vXmEhQCclhvIC8gq2RfDMOQJXOxiCztYzWM1LsVYppB+tGXJYtP0tHCY2uU8Bi7ssNtMY7zcTBNWUKriJYdRdCoPaTSUTIhKFiWnOFFJbUJHvqbtqtQkYp24QwSIrPk4hS2Zd5Rglo2u6PrNF1czMrZvJ9UaN+Ml5SQs3S5kZkTSnU/LxHzNuD2hJcHLL//wePlp1S8W3Roe+TszHlhG/QLvf98xYHqM0nugyL1FfIDXafC7HGRPQZdke0LXXT7HOcudfPl9oNH7U6hZqNxHFHPGb2FpyvR/+ze7e5PY2TTLxIY0Sg=
如果使用setup语法糖则没有此问题:
The text was updated successfully, but these errors were encountered: