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
After updating telefunc from 0.1.44 to 0.1.51, the SSR build that is bundled with webpack into a single file fails to run.
TypeError: path.includes is not a function
at assertPosixPath (file:///home/dani/projects/almafa/livekit-test/apps/nodejs/dashboard/dist/main.mjs:681:40)
at toPosixPath (file:///home/dani/projects/almafa/livekit-test/apps/nodejs/dashboard/dist/main.mjs:669:9)
at isImportBuildOutsideOfCwd (file:///home/dani/projects/almafa/livekit-test/apps/nodejs/dashboard/dist/main.mjs:366:51)
at loadServerBuild (file:///home/dani/projects/almafa/livekit-test/apps/nodejs/dashboard/dist/main.mjs:335:13)
at loadBuild (file:///home/dani/projects/almafa/livekit-test/apps/nodejs/dashboard/dist/main.mjs:53535:53)
at initGlobalContext (file:///home/dani/projects/almafa/livekit-test/apps/nodejs/dashboard/dist/main.mjs:53634:62)
at renderPage (file:///home/dani/projects/almafa/livekit-test/apps/nodejs/dashboard/dist/main.mjs:55440:53)
at file:///home/dani/projects/almafa/livekit-test/apps/nodejs/dashboard/dist/main.mjs:191759:58
The issue is in the following function:
importBuildFilePath is a webpack module id here, which is a number. importBuildFilePath 22892
If I comment the last 3 lines and return false, it works.
functionisImportBuildOutsideOfCwd(paths){constcwd=(0,utils_1.getCwd)();// We cannot check edge environments. Upon edge deployment the server code is usually bundled right after `$ vite build`, so it's unlikley that the resolved importBuildFilePath doesn't belong to cwdif(!cwd)returnnull;letimportBuildFilePath;try{importBuildFilePath=paths.importBuildFilePathResolved();}catch(_a){returnnull;}console.log("importBuildFilePath",importBuildFilePath)// importBuildFilePath = (0, utils_1.toPosixPath)(importBuildFilePath);// (0, utils_1.assertPosixPath)(cwd);// return !importBuildFilePath.startsWith(cwd);returnfalse;}
The text was updated successfully, but these errors were encountered:
After updating telefunc from 0.1.44 to 0.1.51, the SSR build that is bundled with webpack into a single file fails to run.
The issue is in the following function:
importBuildFilePath is a webpack module id here, which is a number.
importBuildFilePath 22892
If I comment the last 3 lines and return false, it works.
The text was updated successfully, but these errors were encountered: