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

"serverless-plugin-typescript" not found

Open alanwilter opened this issue 3 years ago • 1 comments

My project is set as yarn zero install so I thought this plugin was about it.

I did the steps in README:

yarn add --dev serverless-plugin-typescript typescript

# Add the following plugin to your serverless.yml:
plugins:
  - serverless-plugin-typescript

But when I try sls deploy -s test it throws:

Serverless plugin "serverless-plugin-typescript" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file. Run "serverless plugin install -n serverless-plugin-typescript" to install it.

Well, I know if I do that above it will install in node_modules but this conflicts with yarn zero install and the folder is automatically removed if I issue e.g. yarn.

So, what am I missing?

alanwilter avatar Mar 29 '22 17:03 alanwilter

same problem here. I have installed "serverless": "^2.72.3" and "serverless-plugin-typescript": "^2.1.2", and I don't get why I get this error message while deyploying via Github workflow to AWS.

Edit: Adding run: npm ci to the yml for my github workflow did the trick

1ABo avatar Jun 15 '22 16:06 1ABo