-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when just import the package #527
Comments
Hey , what version of the package and node are you using ? |
I am using the: 22.6.1 version of pipedrive client and node version 18.18.0 |
Hey, @matheusrocha89! Maybe you can share a bit more insights about your project's setup? I created a simple nextjs project based on the tutorial and I was able to use the SDK v22.6.1 with Node 18.18.0, I didn't bump into the issue that you are having. |
Hi @siirimangus I create a new repository and tried to use and got the same error. Here is the repository link |
The error is related to the Formidable package which is inherited by the superagent package. I'm using the same versions as @matheusrocha89:
References: I adapted the solution from the last link and the error disappeared: next.config.mjs
|
@rphm , thank you so much for the insights! I tried this solution on the provided project https://github.com/matheusrocha89/pipedrive-example and it worked, the error disappeared. One thing, though, I wasn't able to use the Another thing I'm going to try out now is, to bump the |
@siirimangus I could make it work using import * as pipedrive from "pipedrive"; I had to do that because there was no export default so I imported everything and named it as Off-topic question: |
@rphm in your solution you are destructing the |
sorry, forgot to remove that, has nothing to do with the solution: next.config.mjs
|
Typescript support is in the roadmap. Currently it is in the rc status: https://www.npmjs.com/package/pipedrive/v/22.3.1-rc.5 |
Sadly the same issue persists with So I guess the suggested solution is the way to go here. |
I am trying to use the client node with a nextjs project and when I am importing the pipedrive I am getting this error:
Anybody already passed through this?
The text was updated successfully, but these errors were encountered: