You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ifconstactiveFile=ref('app.vue')constmainFile=ref('appWarp.vue')functioninit(){watchEffect(()=>compileFile(store,activeFile.value).then(// not activeFile, sould be mainFile(errs)=>(errors.value=errs),),)// ...for(const[filename,file]ofObject.entries(files.value)){if(filename!==mainFile.value){// no compile mainFile.valuecompileFile(store,file).then((errs)=>errors.value.push(...errs))}}
src/store.ts
if(activeFile.value !== mainFile.value)
这种情况下,mainFile的file对象里面的compiled的js,css,ssr都是空的导致渲染不了
The text was updated successfully, but these errors were encountered: