-
Notifications
You must be signed in to change notification settings - Fork 47
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
Module Not Found in Next.js - AMD module issue and relative paths. #138
Comments
Thanks for sharing, I am getting a new error:
|
For some reason this didn't work for me. I also tried to use this property which didn't work at all: https://webpack.js.org/configuration/other-options/#amd. Anyone have ideas on how to fix this with Webpack 5? |
For now I just changed the condition in the cybersource-rest-client package code to never build with AMD enabled, and I'm using |
Please provide complete samples to the repository with react or nextjs. There is no any complete sample(demo app) for react or nextjs with cybersource on the internet. Its a huge issue when integrating cybersource to newest web technologies. Most of the users need payment link and recurring billing for their projects. Please create demo react or nextjs app by including above scenarios. I also got this issue module not found when integratiing with nextjs. |
Next.js tries to load the import as AMD, due to relative path resolution in Webpack to get this library to work you need to add the following to next.config.mjs.
The text was updated successfully, but these errors were encountered: