client-js icon indicating copy to clipboard operation
client-js copied to clipboard

Issue getting the Module to import

Open pauloensign opened this issue 3 years ago • 0 comments

When using the import {restClient} from "@polygon.io/client-js"; I am getting an error that

image

I can see in the source tab of the inspect that it is grabbing the main.js file as shown here which should be the correct file to get the rest or websocket libraries

image

the file is formatted as a commonjs file and not an ES Module. What am I missing to get the api module to work? thanks

pauloensign avatar Aug 25 '22 19:08 pauloensign