panates / postgrejs

Professional PostgreSQL client for NodeJS
https://postgrejs.panates.com
MIT License
50 stars 12 forks source link

esm/index.mjs does not exist in npm package #9

Closed btakita closed 2 years ago

btakita commented 2 years ago

Describe the bug Error: Could not load /path/to/node_modules/postgresql-client/esm/index.mjs: ENONET: no such file or directory, open '/path/to/node_modules/postgresql-client/esm/index.mjs'

To Reproduce Steps to reproduce the behavior:

  1. Project using "type": "module"
  2. Add postgresql-client as a dependency
  3. import 'postgresql-client'
  4. See error

Expected behavior Load postgresql-client

Desktop (please complete the following information):

Additional context https://github.com/panates/postgresql-client/blob/master/package.json#L28

"module": "esm/index.mjs"
erayhanoglu commented 2 years ago

Thank you for your feedback. Let me some time to fix it.

erayhanoglu commented 2 years ago

Just released 2.1.0. This version fixes this issue