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))}}
The issue with renaming the main file seems to have been fixed in version 4.1.2 (caace63).
You can try it and let us know if you have any issues. Thanks
src/store.ts
if(activeFile.value !== mainFile.value)
这种情况下,mainFile的file对象里面的compiled的js,css,ssr都是空的导致渲染不了
The text was updated successfully, but these errors were encountered: