运行 npm run serve 后出现此错误:
in ./src/components/site-checker/insert-model.vue?vue&type=style&index=0&lang=stylus&
Syntax Error: ValidationError: Invalid options object. Stylus Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'preferPathResolver'. These properties are valid:
object { stylusOptions?, sourceMap?, webpackImporter?, additionalData? }
Run Code Online (Sandbox Code Playgroud)
我在这个框架中使用 VueJS:
【Vue 2】babel、路由器、vuex Vue CLI v4.5.8
我尝试更新反应性对象,但反应性丢失。
如何解决这个问题呢?
const obj = reactive({ id:0 , name: "Tom" })
const updateObj = { id:1 , name: "Bob" }
Object.keys(updateObj).forEach(key => {
obj[key] = updateObj[key]
})
console.log( isRef( obj.id ) ) // => false
Run Code Online (Sandbox Code Playgroud)