-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
Describe the bug
Wasp generator produces invalid Windows path for MyApp/.wasp/out/sdk/dev/index.ts (16,50)
To Reproduce
Steps to reproduce the behavior:
- Clone commit Better Win support: correct resolving of node/npm/npx & prisma #3258 for fixing npm on Windows shell
- Prepare the
waspc/data/packages/fromwaspc/packages
./waspc/tool/install_packages_to_data_dir
- Create new project
cabal run wasp-cli -- new MyApp- Run db migrate-dev
cabal run wasp-cli -- db migrate-dev- The console will show this error:
? --- Setting up database... -----------------------------------------------------
[ Db !] Error: P1003
[ Db !]
[ Db !] Database `dev.db` does not exist at `D:\src\github\wasp\waspc\examples\MyApp\.wasp\out\db\./dev.db`.
[ Db !]
[ Db ] Environment variables loaded from .env
[ Db ] Prisma schema loaded from ..\db\schema.prisma
[ Db ]
[ Db ] ? Generated Prisma Client (v5.19.1) to .\..\..\..\node_modules\@prisma\client in 142ms
[ Db ]
? --- Database successfully set up. ----------------------------------------------
? --- Building SDK... ------------------------------------------------------------
[ Wasp ] dev/index.ts(16,50): error TS1002: Unterminated string literal.
? --- [Error] Your wasp project failed to compile: -------------------------------
- SDK build failed with exit code: 2
? --- [Error] Compilation of wasp project failed: --------------------------------
1 errors foundThis is the content of dev/index.ts(16,50)
export function resolveProjectPath(path: string): string {
const waspProjectDirFromWebAppDir = '..\..\..\'
return joinPaths(waspProjectDirFromWebAppDir, path)
}Environment:
- OS: Windows 11 (Build 10.0.26100)
- Cabal 3.12.1.0
- Stack 3.3.1
- HLS 2.10.0.0
- GHC 8.10.7 (base-4.14.3.0)
PS. I'm working on this issue.