-
Notifications
You must be signed in to change notification settings - Fork 164
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
/src/security/index not found on Vercel serverlesss function. #636
Comments
I'm trying to compile Apply this patch, but you may run into other errors relating to dynamic imports.
Also from README « Node.js version 10, 12, and 14 are officially supported. We dropped version 8 support in 3.0.0. », then I wonder why there is a piece of code to support node.js 4. My two cents, and hoping it helps. |
And for the dynamic imports, as a workaround, I am presently using a different entry point to my custom /* eslint-disable */
// The packaging tool is unable to recognize dynamic imports,
// however we can workaround this by doing the imports ourselves
require("strong-globalize/cldr/cldr_32.0.1.json");
// find ./node_modules/strong-soap/intl/ -type f | sed 's/.\/node_modules\///g' | sort | sed 's/.*/require\("&"\);/g'
require("strong-soap/intl/cs/messages.json");
require("strong-soap/intl/de/messages.json");
require("strong-soap/intl/en/messages.json");
require("strong-soap/intl/es/messages.json");
require("strong-soap/intl/fr/messages.json");
require("strong-soap/intl/it/messages.json");
require("strong-soap/intl/ja/messages.json");
require("strong-soap/intl/ko/messages.json");
require("strong-soap/intl/nl/messages.json");
require("strong-soap/intl/pl/messages.json");
require("strong-soap/intl/pt/messages.json");
require("strong-soap/intl/ru/messages.json");
require("strong-soap/intl/tr/messages.json");
require("strong-soap/intl/zh-Hans/messages.json");
require("strong-soap/intl/zh-Hant/messages.json");
require("strong-soap/intl/zz/messages_inverted.json");
require("strong-soap/intl/zz/messages.json");
require("./www.js"); |
fixes: #636 Signed-off-by: Rifa Achrinza <[email protected]>
Did you have to do anything special to get cldr to work? I'm getting similar issues using Firebase Functions. I've changed my entry point to a new file that includes the above, but get the following:
Did you have to copy any additional packages into your bundle? |
@noddy-cred I think you may need to declare cldr explicitly (and other dependencies of strong-soap?) as a dependency of your firebase project to make the SDK deploy that module. PS: I've added after
To dump all imported modules after I call the APIs on IMO strong-soap needs to be redesigned for the serverless world. I've found another alternative/solution for my issue, but am bound by NDA. |
I'm using
strong-soap
basically with requireconst soap = require('strong-soap').soap;
App works perfectly fine on local ngrok but it crashes on Vercel. Is there anything we can do to fix this?
The error in the Vercel log:
The text was updated successfully, but these errors were encountered: