Add yargs as a dev dependency for the app action function example, as yargs is used in the build-functions.js script. Previously this was working fine when the example was using react-scripts, and now since refactoring to vite, this was not working properly. When running npm run build, I was seeing this error: Cannot find module 'yargs/yargs'.
Purpose
Add
yargs
as a dev dependency for the app action function example, asyargs
is used in thebuild-functions.js
script. Previously this was working fine when the example was usingreact-scripts
, and now since refactoring tovite
, this was not working properly. When runningnpm run build
, I was seeing this error:Cannot find module 'yargs/yargs'
.Approach
Testing steps
Breaking Changes
Dependencies and/or References
Deployment