serverless-plugin-typescript icon indicating copy to clipboard operation
serverless-plugin-typescript copied to clipboard

running sls offline start while compiling symlink node_module

Open bwship opened this issue 7 years ago • 2 comments

We are running a setup where we have a serverless lambda folder and an npm folder and have a symlink setup. It works great, but when we run tsc in the npm folder, serverless goes into 'Compiling with Typescript...' infinitely. Here is a screenshot of it:

https://www.evernote.com/l/ADZ0T1hOKCBG97dyqtz5qStX2_Yg0EmpxjY

I think the watch folder just needs to ignore the node_modules folder, but not sure if that is an option.

bwship avatar Nov 08 '17 18:11 bwship

@bwship did you ever find a solution? That recompile loop really drags us down.

brianeletype avatar Apr 14 '19 23:04 brianeletype

Same, annoying & time consuming issue here 😞 Issuing CTRL+C won't stop that loop 🙃 so we keep on firing killall node as a workaround.

⚠️ Ignoring node_modules might not be a good idea though in the context of a monorepo where Lambda & Yarn Workspaces do rely on symlinks to our packages out there.

clorichel avatar Nov 11 '20 08:11 clorichel