Ivan Roskoshnyi
01/24/2022, 3:49 PMserverless.yml but I found no info how to do it in SST.
2. In SST I use serverless-mysql what I used in serverless. Is it ok for SST? I faced an issue when I tried to deploy code to prod: Error: Received packets in the wrong sequence I found that we need to disable webpack minimization of modules but I have no idea how to do it in SST
Hope someone faced these issues. They are looking common but as this framework is new....There are no info in google.thdxr
01/24/2022, 3:59 PMthdxr
01/24/2022, 4:00 PMserverless-mysql to bundle.nodeModules to disable bundlingIvan Roskoshnyi
01/24/2022, 6:29 PMthdxr
01/24/2022, 6:30 PMthdxr
01/24/2022, 6:31 PMnodeModules array specifies a list of packages that shouldn't be bundled and instead pulled from npm and included in node_modulesIvan Roskoshnyi
01/24/2022, 6:34 PMnew sst.Api() constructorthdxr
01/24/2022, 6:35 PMthdxr
01/24/2022, 6:35 PMIvan Roskoshnyi
01/24/2022, 6:36 PMIvan Roskoshnyi
01/24/2022, 6:43 PMdefaultFunctionProps: {
bundle: {
nodeModules: ["serverless-mysql"]
}
},
and run npx sst build I will get an error .sst/artifacts/8548657d/package.json: Unexpected end of JSON inputIvan Roskoshnyi
01/24/2022, 6:43 PMthdxr
01/24/2022, 6:43 PMthdxr
01/24/2022, 6:43 PMIvan Roskoshnyi
01/24/2022, 6:44 PM"@serverless-stack/cli": "0.60.2",
"@serverless-stack/resources": "0.60.2",Ivan Roskoshnyi
01/24/2022, 6:53 PMFrank
"@serverless-stack/cli": "0.60.4",
"@serverless-stack/resources": "0.60.4",
and then give it a try?Ivan Roskoshnyi
01/25/2022, 3:52 AMpackage doesn't exist in npm registry So I solved my issue. with minimize: false
nodeModules prop doesn't work for meGita Alekhya Paul
01/31/2022, 5:14 AMthdxr
02/01/2022, 1:57 PMGita Alekhya Paul
02/01/2022, 1:58 PMUnexpected end of JSON input issue on 0.60.2 but it got resolved on version 0.60.8Frank
aws-cdk-lib to “2.7.0”? ie.
"@serverless-stack/cli": "0.60.11",
"@serverless-stack/resources": "0.60.11",
"aws-cdk-lib": "2.7.0",Ivan Roskoshnyi
02/02/2022, 7:19 PMnpm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <<https://npm.community>>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ivan/.npm/_logs/2022-02-02T19_17_45_977Z-debug.log
trying to install 0.60.11Ivan Roskoshnyi
02/02/2022, 7:38 PMFrank