Hi all,
Since Stripe released an update to their node.js package on Dec 9th, I get the following logs:
"ModuleNotFoundError: Error: Unable to handle the request. Contact the site administrator or view site monitoring logs for more information. "
Error loading web module backend/workflows.jsw: Cannot find module ‘stripe’
Require stack:
- /user-code/backend/stripe.jsw
- /user-code/backend/workflows.jsw
- /user-code/stubmodule-that-does-the-require.js
- /elementory/node_modules/scoped-require/index.js
- /elementory/factories.js
- /elementory/create-app.js
- /elementory/cloud-grid-runner.js
These errors are triggered even when the page code isn’t making a Stripe API call - For example: making a call to an unrelated function in a web module (“workflows.jsw”) that contains an import statement to import functions from another web module (“stripe.jsw”) that itself has the import statement for the stripe node.js package.
Is this an issue from the Wix package manager not maintaining the connections with external packages? If so, what can I do to avoid this problem?
This breaks my entire application which is obviously no bueno. I’d like to use these external packages but if this is something that might occur then I just cannot take that risk for the sake of convenience.
Please help! Thanks very much!