You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree with you. But as I don't use TypeScript either I don't know how to properly fix it.
Does people using TypeScript always have the ts-node deps? How can we force them to install it? Because the deps is optional for people not using TypeScript but it's required if they use it.
Based on the instructions from webpack, I'm pretty sure that people using TypeScript for their webpack file will have ts-node installed. That's why optional dependencies seems like the right answer. Looking at the docs for optionalDependencies npm notes:
It is still your program’s responsibility to handle the lack of the dependency.
So perhaps serverless-webpack would need to provide a meaningful error message if the require('ts-node') call failed.
This is a Bug Report
Description
After doing an
npm install --save-dev serverless-webpack
I received a warning about unmet peer dependencies from npm:My project doesn't use typescript, so this was unexpected. It seems like
ts-node
should be an optionalDependency instead of a dependency.Additional Data
The text was updated successfully, but these errors were encountered: