Fazi
09/03/2021, 11:53 AMPreparing your SST app
Detected tsconfig.json
Transpiling source
There was a problem transpiling the source.
It appears this is caused by the following error handling in the SST code:
try {
const result = await esbuild.build(esbuildOptions);
require('fs').writeFileSync(metafile, JSON.stringify(result.metafile))
} catch (e) {
// Not printing to screen because we are letting esbuild print
// the error directly
logger.debug(e);
throw new Error("There was a problem transpiling the source.");
}
Anyone got any ideas as to why this is happening?
I am trying to start SST from inside a docker container.Ross Coundon
09/03/2021, 11:55 AMFazi
09/03/2021, 11:57 AMFazi
09/03/2021, 11:58 AMENVIRONMENT_NAME=Integration docker-compose run sst_integration npx sst start -- --stage Integration
Fazi
09/03/2021, 12:04 PMError: spawn Unknown system error -8
Fazi
09/03/2021, 12:15 PMalpine
, that has now changed the error to the following:
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
Fazi
09/03/2021, 1:29 PMFrank
Fazi
09/05/2021, 11:10 AMFazi
09/05/2021, 11:11 AMFrank
sst start
, I was thinking to support building and running Python functions inside docker. But ur setup also works! I think urs might even be faster b/c SST doesn’t have to start/stop a docker contain to handle each request.Frank
Fazi
09/05/2021, 9:01 PMthdxr
09/05/2021, 10:21 PMSeth Geoghegan
10/20/2021, 6:10 PMFazi
10/21/2021, 10:05 PMversion: "3.9"
services:
sst_integration:
image: 'sst-integration'
container_name: 'sst-integration'
build: ./sst_integration
ports:
- "8040:8040"
volumes:
- ./sst_integration:/src/sst_integration
- /src/sst_integration/node_modules
- ~/.aws/:/root/.aws:ro
stdin_open: true
tty: true
networks:
- sandbox
networks:
sandbox:
name: sandbox_network
I am sure there are much better ways to get it all working though.Fazi
10/21/2021, 10:07 PMSeth Geoghegan
10/22/2021, 12:34 PMSeth Geoghegan
10/22/2021, 12:48 PMSeth Geoghegan
10/22/2021, 1:00 PMFazi
10/25/2021, 12:25 PM