Open kyken opened 1 year ago
Hey @kyken, thanks for the issue. The quickest workaround would be to use beta 15 of the codemod that still uses the app directory.
npx @blitzjs/codemod@2.0.0-beta.15 upgrade-legacy
The issue can be solved in the following way:
- const blitzServer = fs.readFileSync(path.join(templatePath, "app", "app", "blitz-server.ts")).toString()
+ const blitzServer = fs.readFileSync(path.join(templatePath, "app", "src", "blitz-server.ts")).toString()
- const blitzClient = fs.readFileSync(path.join(templatePath, "app", "app", "blitz-client.ts")).toString()
+ const blitzClient = fs.readFileSync(path.join(templatePath, "app", "src", "blitz-client.ts")).toString()
Man this is a bummer
What is the problem?
When I try to upgrade legacy-framework (v0.45.5) using codemod, I get some wrong path errors
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
$ cd legacy-framework/examples/auth
(maybe anything withexamples
).npx @blitzjs/codemod upgrade-legacy
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response