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
How can I use yargs in an angular environment? It looks like it has a dependency on fs that prevents it from being used client side. Is this this true?
ERROR in ./node_modules/yargs-parser/build/lib/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/kenneth.paysonlabshare.org/Documents/code/labshare/ng-auth/node_modules/yargs-parser/build/lib'
ERROR in ./node_modules/yargs-parser/build/lib/index.js
Module not found: Error: Can't resolve 'path' in '/Users/kenneth.paysonlabshare.org/Documents/code/labshare/ng-auth/node_modules/yargs-parser/build/lib'
The text was updated successfully, but these errors were encountered:
How can I use yargs in an angular environment? It looks like it has a dependency on fs that prevents it from being used client side. Is this this true?
then in my file
import parser from 'yargs-parser';
const argv = parser('--foo=99 --bar=9987930', {
string: ['bar']
})
and I get this error
ERROR in ./node_modules/yargs-parser/build/lib/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/kenneth.paysonlabshare.org/Documents/code/labshare/ng-auth/node_modules/yargs-parser/build/lib'
ERROR in ./node_modules/yargs-parser/build/lib/index.js
Module not found: Error: Can't resolve 'path' in '/Users/kenneth.paysonlabshare.org/Documents/code/labshare/ng-auth/node_modules/yargs-parser/build/lib'
The text was updated successfully, but these errors were encountered: