fix: undefined rootFolder when build refenrece