-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Incorrect error when applying local migrations with d1 "Cannot read properties of undefined (reading 'map')" #2431
Comments
Thanks for reporting this. We will take a look at it. cc: @rozenmd |
This might be fixed with the latest version of the shim in miniflare (CC @mrbbot) |
Hey! 👋 Yep, I'm in the process of revamping the D1 Miniflare integration to use the shim. This should help alleviate some of these issues once implemented. |
Hmmm, looks like this isn't quite fixed by #2717, this is the output I'm getting now: |
Hey! 👋 This should've be fixed by #2838 👍 |
What version of
Wrangler
are you using?2.6.2
What operating system are you using?
Linux
Describe the Bug
When the migration fails, I get the error
Cannot read properties of undefined (reading 'map')
when trying to dowrangler d1 migrations apply my_db_name --local
After fixing the issue with the migration, there is no error.
When you migrate without
--local
, you get the proper error:The text was updated successfully, but these errors were encountered: