DenoDDeno
Powered by
lumioL
Denoβ€’10mo agoβ€’
30 replies
lumio

NPM package "pg@8.16.0" does not define an export ".".

Hello everyone!

I'm relatively new to the deno world and am currently trying to create a simple CRUD API with Fresh.

I followed this article: https://deno.com/blog/build-database-app-drizzle and installed pg with
deno install npm:pg
deno install npm:pg
. However when trying to import it in any form from

import { Pool } from "pg"; // or "npm:pg"
// or
import pg from "pg"; // or "npm:pg"
import { Pool } from "pg"; // or "npm:pg"
// or
import pg from "pg"; // or "npm:pg"


my VSCode prints out an error saying
NPM package "pg@8.16.0" does not define an export ".".
NPM package "pg@8.16.0" does not define an export ".".


Does anyone know how to fix this or work around this?
Deno
Build a Database App with Drizzle ORM and Deno | Deno
Using an object-relational mapping (ORM) database can make working with persistent data simpler. Here's how to use a popular ORM, Drizzle, with Deno.
Build a Database App with Drizzle ORM and Deno | Deno
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

The requested module 'npm:@jest/globals' does not provide an export named 'describe'
bzm3rBbzm3r / help
12mo ago
npm executable script error: 'node:process' does not provide an export named 'execPath'
varunpramanikVvarunpramanik / help
2y ago
Local npm package
RevadikeRRevadike / help
11mo ago