Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"serverless-plugin-typescript" not found #269

Open
alanwilter opened this issue Mar 29, 2022 · 1 comment
Open

"serverless-plugin-typescript" not found #269

alanwilter opened this issue Mar 29, 2022 · 1 comment

Comments

@alanwilter
Copy link

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?

@1ABo
Copy link

1ABo commented Jun 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants