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

Module not found "https://jsr.io/@neon/serverless/0.10.1/pg-protocol" #112

Open
cy6erskunk opened this issue Oct 30, 2024 · 1 comment
Open

Comments

@cy6erskunk
Copy link

Steps to reproduce

  • setup empty project: deno init
  • install the package: deno install jsr:@neon/serverless
  • import neon in the main.ts: import { neon } from '@neon/serverless';
  • run tests: deno test

Expected result

Tests are run without problems

Actual result

❯ deno test
error: Module not found "https://jsr.io/@neon/serverless/0.10.1/pg-protocol".
    at https://jsr.io/@neon/serverless/0.10.1/index.d.ts:8:31

Environment

❯ deno --version
deno 2.0.4 (stable, release, aarch64-apple-darwin)
v8 12.9.202.13-rusty
typescript 5.6.2

Logs, links

@jmlnik
Copy link

jmlnik commented Nov 22, 2024

Same issue here with v.0.10.3

For what it's worth, a possible workaround is to import pg-protocol explicitly, for example in deno.json:

{
  "imports": {
    "https://jsr.io/@neon/serverless/0.10.3/pg-protocol": "npm:pg-protocol@^1.7.0"
  }
}

Make sure to update the key to match the version of @neon/serverless you're using, ie 10.1 vs 10.3, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants