polygon-io / client-js

The official JS client library for the Polygon REST and WebSocket API.
MIT License
190 stars 59 forks source link

7.2.4 is broken #165

Closed gh20230214 closed 1 year ago

gh20230214 commented 1 year ago

When trying to use the latest version 7.2.4, the following error occurs:

node:internal/modules/cjs/loader:1096 const err = new Error(Cannot find module '${request}'); ^ Error: Cannot find module '\node_modules\@polygon.io\client-js\dist\main.cjs'

This error occurs on the require line const { restClient } = require('@polygon.io/client-js');

If I use version 7.2.3, there is no issue.

timetraveler328 commented 1 year ago

Hey @gh20230214, thanks for reporting this. It looks like something went wrong during publish and some files were missing, I've republished the same build as 7.2.5 and all seems to be working. Let me know if you have any more issues with it