Skip to content
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

Getting "Cannot find module" after latest docker image pull #515

Closed
2 tasks done
Justinyu1618 opened this issue Jul 4, 2024 · 1 comment · Fixed by #516
Closed
2 tasks done

Getting "Cannot find module" after latest docker image pull #515

Justinyu1618 opened this issue Jul 4, 2024 · 1 comment · Fixed by #516
Labels
bug Something isn't working released

Comments

@Justinyu1618
Copy link

Justinyu1618 commented Jul 4, 2024

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

After pulling the latest image public.ecr.aws/supabase/storage-api:v1.6.7, and then running supabase db pull, I get this error:

Error: Cannot find module '/app/dist/scripts/migrate-call.js'
                                                                                        at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
                          at Module._load (node:internal/modules/cjs/loader:986:27)
                                                                                       at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
                                          at node:internal/main/run_main_module:28:49 {
                                                                                         code: 'MODULE_NOT_FOUND',
                                                                                                                    requireStack: []
                                                                                                                                    }

When I sh into the docker container, there is no script called /app/dist/scripts/migrate-call.js, only /app/dist/scripts/migrate.js

To Reproduce

  1. Be on the latest docker image. This should be the one that's pulled when you try running supabase db pull
  2. Run supabase db pull, it should error out
  3. Run supabase db pull --debug, it should show the error above

Expected behavior

I expect the function to work as normal

Screenshots

System information

  • OS: macOs
  • Version of supabase CLI: 1.178.2
@Justinyu1618 Justinyu1618 added the bug Something isn't working label Jul 4, 2024
@fenos fenos closed this as completed in #516 Jul 5, 2024
Copy link

github-actions bot commented Jul 5, 2024

🎉 This issue has been resolved in version 1.6.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant