You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project is working completely fine when running locally. But when building, it gives this error in one of the dependencies used by client library named as long -> 5.2.3
Actual Error while Building
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("../index.js")' call instead
I am using tsc command to build the project
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @localhostd3veloper, I think this issue has to do with your typescript configuration. However, you shouldn't need to install those dependencies anyways since they're development dependencies. It looks like you're using .pnpm, could you try running: rm -rf node_modules && pnpm i --prod, then try rebuilding?
Environment details
Steps to reproduce
I am using the client library for Document AI using Node.JS with the help of this url
https://cloud.google.com/document-ai/docs/samples/documentai-quickstart?hl=en#documentai_quickstart-nodejs
The project is working completely fine when running locally. But when building, it gives this error in one of the dependencies used by client library named as
long
->5.2.3
Actual Error while Building
I am using
tsc
command to build the projectThanks!
The text was updated successfully, but these errors were encountered: