serverless-plugin-typescript
serverless-plugin-typescript copied to clipboard
"serverless-plugin-typescript" not found
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?
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