Open karlmolina opened 5 months ago
I found that the issue is that plugin-typescript deletes the build folder for the lambda before it rebuilds it with esbuild: https://github.com/architect/plugin-typescript/blob/main/src/_compile.js#L44 If I remove that line then it works as expected.
Describe the issue In my typescript project when I use architect/functions, and I try to use the livereload functionality I see the error message in the browser:
If I refresh it will load my changes.
I'm guessing this happens because the typescript compile takes too long but I'm not actually sure. If I don't import architect/functions in typescript then it compiles quickly and livereload works as expected.
Another reason may be that esbuild deletes the bundled js file and takes too long for it regenerate so sandbox can't find it.
Steps to reproduce Steps to reproduce the behavior:
npm i
arc sandbox
src/http/get-index/index.ts
Expected behavior Live reload should not return the lambda not found error message. It should reload the changes automatically.
Screenshots If applicable, add screenshots to help explain your problem
Desktop Please complete the following information (if appropriate):
Mobile Please complete the following information (if appropriate):
Additional context Add any other context or notes about the problem here