TypeError: url__WEBPACK_IMPORTED_MODULE_1__.URL is not a constructor
iamcharlesb opened this issue · comments
iamcharlesb commented
Hi Team,
I' am getting the below error, please help. BTW I love your product so much!
const duffel = new Duffel({
// Store your access token in an environment variable, keep it secret and only readable on your server
token: 'My Token,
});
const offerRequestResponse = await duffel.offerRequests.create({
slices : [
{
origin: "NYC",
destination: "ATL",
departure_date: "2022-06-21"
},
{
origin: "ATL",
destination: "NYC",
departure_date: "2022-07-21"
}
],
passengers: [{ type: "adult" }, { type: "adult" }, { age: 1 }],
cabin_class: "business",
return_offers: true
})
console.log(offerRequestResponse.data.id);
iamcharlesb commented
Igo Lapa commented
Hello @iamcharlesb and thanks for reporting the issue! Just a quick question, are you using the SDK on the client-side or server-side?
Igo Lapa commented
Will be closing the issue as there was no update in the last 29 days. If you have any other questions, please feel free to re-open the issue!
iamcharlesb commented
Hello Igo,
Iam using the SDK on the client side. Sorry for the delayed response.
Regards,
Charles
…On Tue, Apr 26, 2022 at 2:12 AM Igo Lapa ***@***.***> wrote:
Will be closing the issue as there was no update in the last 29 days. If
you have any other questions, please feel free to re-open the issue!
—
Reply to this email directly, view it on GitHub
<#442 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJD6XEAHPZ5EX7N22DPDCDVG6XRFANCNFSM5RVZ65AA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
Luke commented
I had the same issue.
I was using:
https://github.com/t3-oss/create-t3-turbo
But when I used the non turbo reop it worked:
https://github.com/t3-oss/create-t3-app
Not sure why.
iamcharlesb commented
Thanks Luke
…On Thu, Sep 14, 2023 at 4:29 PM Luke ***@***.***> wrote:
I had the same issue.
I was using:
https://github.com/t3-oss/create-t3-turbo
But when I used the non turbo reop it worked:
https://github.com/t3-oss/create-t3-app
Not sure why.
—
Reply to this email directly, view it on GitHub
<#442 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJD6XDEP3VEN4QBYRNBKI3X2OHOVANCNFSM5RVZ65AA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>