neondatabase / serverless

Connect to Neon PostgreSQL from serverless/worker/edge functions
https://www.npmjs.com/package/@neondatabase/serverless
MIT License
321 stars 13 forks source link

Critical dependency: the request of a dependency is an expression #13

Closed lawrencecchen closed 1 year ago

lawrencecchen commented 1 year ago

Steps to reproduce

Using Next.js app directory

"next": "^13.2.4", "@neondatabase/serverless": "^0.2.9",

pnpm dev

Environment

MacOS Node v19.4.0

Logs, links

Import trace for requested module:
../../node_modules/@neondatabase/serverless/index.js
../../node_modules/@neondatabase/serverless/index.mjs
./src/app/app/page.tsx
warn  - ../../node_modules/@neondatabase/serverless/index.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
../../node_modules/@neondatabase/serverless/index.js
../../node_modules/@neondatabase/serverless/index.mjs
./src/app/app/page.tsx

../../node_modules/@neondatabase/serverless/index.js
jawj commented 1 year ago

Thanks. I think I know where the warning is coming from, but I think I also know (see separate issue, #12) why the dev command isn't working, and we're working on that.

maccman commented 1 year ago

Seeing this too

jawj commented 1 year ago

This should be resolved in recent releases of the driver (latest is 0.4.18). Please shout if you're still having a problem, otherwise I'll close the issue soon.