Trey Overton
05/16/2022, 2:41 PM"Error: Cannot find module 'punycode/'\nRequire stack:\n- /var/task/src/lambda.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js"
Oddly, when testing the function locally, it works fine, but when deployed via Seed, it does not. I am lost as to where to go look to resolve this. Any suggestions?thdxr
05/16/2022, 4:05 PMthdxr
05/16/2022, 4:06 PMthdxr
05/16/2022, 4:06 PMTrey Overton
05/16/2022, 4:06 PMTrey Overton
05/16/2022, 4:07 PMexport { utility } from './utility';
// Responses for REST API endpoints
export { response, HttpResponse } from './response';
// Default service endpoints
export { main as delete } from './endpoints/delete';
export { main as get } from './endpoints/get';
export { main as list } from './endpoints/list';
export { main as reindex } from './endpoints/reindex';
export { main as search } from './endpoints/search';
export { main as upsert } from './endpoints/upsert';
<... and more>
Trey Overton
05/16/2022, 4:07 PMthdxr
05/16/2022, 4:21 PMthdxr
05/16/2022, 4:21 PMthdxr
05/16/2022, 4:22 PMimport { Thing } from "@company/core"
and now I do import { Thing } from "@company/core/thing"
Trey Overton
05/16/2022, 4:22 PMTrey Overton
05/16/2022, 4:22 PMthdxr
05/16/2022, 4:22 PMTrey Overton
05/16/2022, 4:23 PMthdxr
05/16/2022, 4:23 PMthdxr
05/16/2022, 4:23 PMTrey Overton
05/16/2022, 4:24 PM