vercel / vercel/storage

Vercel can't find the module "@vercel/postgres"

Open
#760 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
595
Forks
101
Avg merge
2h 24m
Merged PRs (30d)
1

Description

Here's the log saying that Vercel can't import Postgres:

Image of error log in Vercel console

Here are my dependencies in my package.json file:

Dependencies listed in the package.json file

Here's the command that I'm using to import it:

Import SQL from postgres command

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the package.json dependencies and the import command shown in the issue, then inspect the Vercel build log for the module-resolution failure. Done should mean Vercel can resolve @vercel/postgres without the reported import error.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres, typescript
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.