Closed pushkarsingh32 closed 9 months ago
Thank you for taking the time to raise this issue.
I've tried creating a new next app and used your code but I couldn't recreate the error on the server or client side.
I am importing it in server page & rendering it on the frontend.
I am not sure what you mean by this, can you please share a repository where we can reproduce this error?
Thank you.
Closed as no response and unable to replicate. Reach out if we can still help.
I have the same problem with vite.
npm i @paddle/paddle-js
import { initializePaddle, Paddle } from '@paddle/paddle-js';
In the console I got:
SyntaxError: The requested module 'http://localhost:8080/node_modules/.vite/deps/@paddle_paddle-js.js?v=6a7432ef' doesn't provide an export named: 'Paddle'
Looking in node_modules/@paddle/paddle-js/dist/index.esm.js
, Paddle
is not exported:
export { CheckoutEventNames, CheckoutEventsPaymentMethodCardTypes, CheckoutEventsPaymentMethodTypes, CheckoutEventsStatus, CheckoutEventsTimePeriodInterval, getPaddleInstance, initializePaddle };
Try
Keeping paddle outside of curly braces. They may be exporting it as default
There is no default exports
What happened?
was working with paddle js client in nextjs javascript app router version
when ever I go to the payment page it is showing error on the backend. Thought things are working properly on the fronten. I want to make sure Everything is working as expected in prouduction without an issue.
Steps to reproduce
above is client page in nextjs
I am importing it in server page & rendering it on the frontend.
So similiar thing can be implemente for reproducing
What did you expect to happen?
The error shouldn't be there. I am not sure why we are importing Paddle if we are not using it
How are you integrating?
Nextjs app router "next": "^13.4.12",
Logs