blitz db seed won't run code imported from other files

Created on 5 Nov 2020  路  3Comments  路  Source: blitz-js/blitz

What is the problem?

Steps to Reproduce

  1. Bootstrap a new app and run blitz db seed after importing something into seeds.ts from another file such as hashPassword from auth-utils.

Versions

0.25.0-canary-1

Other

Please include applicable logs and screenshots that show your problem.

kinbug statudone

All 3 comments

I can't reproduce this in my local with 0.25.0-canary.1 in my brand new project.

Could you run blitz --version and yarn run blitz --version and then copy and paste the logs if this still happens. Your seed file is also helpful.
As far as I remember it fixed with 0.25.0-canary.0.
I guess your global blitz-cli is 0.24.x version or something like less than the canary version.

I didn't install with yarn, that's probably the difference. I'll check it out tomorrow.

This appears to be fixed in the full 0.25.0 release. Sorry about that!

Was this page helpful?
0 / 5 - 0 ratings