错误1
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'shapeFlag')
at setVarsOnVNode (runtime-dom.esm-bundler.js:714)
at setVars (runtime-dom.esm-bundler.js:705)
at callWithErrorHandling (runtime-core.esm-bundler.js:6737)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:6746)
at ReactiveEffect.getter [as fn] (runtime-core.esm-bundler.js:7101)
at ReactiveEffect.run (reactivity.esm-bundler.js:160)
at flushPostFlushCbs (runtime-core.esm-bundler.js:6938)
at flushJobs (runtime-core.esm-bundler.js:6983)
错误原因为没有引入vue的ref
import { ref } from "vue"
错误2
Uncaught SyntaxError: The requested module '/src/components/Rate.vue' does not provide an export named 'Rate'
解决方式
import { Rate } from '../components/Rate.vue'
修改为
import Rate from '../components/Rate.vue'