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

open.apps.chrome not working #249

Closed
mrbing47 opened this issue May 14, 2021 · 2 comments
Closed

open.apps.chrome not working #249

mrbing47 opened this issue May 14, 2021 · 2 comments

Comments

@mrbing47
Copy link

I am facing an issue while using open.apps.chrome to open the URL in chrome. I have an app which supports multiple platform but this doesn't seem to work for me.

const open = require("open");
await open(value, {app: { name: open.apps.chrome }})

and it throws the following error

TypeError: Cannot read property 'chrome' of undefined
    at Object.handler (/Users/sanjay/Sarthik/Web Projects/CLI-URL-Shortner/script.js:186:44)
    at /Users/sanjay/Sarthik/Web Projects/CLI-URL-Shortner/node_modules/yargs/build/index.cjs:1:8973
    at j (/Users/sanjay/Sarthik/Web Projects/CLI-URL-Shortner/node_modules/yargs/build/index.cjs:1:4852)
    at _.applyMiddlewareAndGetResult (/Users/sanjay/Sarthik/Web Projects/CLI-URL-Shortner/node_modules/yargs/build/index.cjs:1:8942)
    at _.runCommand (/Users/sanjay/Sarthik/Web Projects/CLI-URL-Shortner/node_modules/yargs/build/index.cjs:1:7127)
    at Bt.[runYargsParserAndExecuteCommands] (/Users/sanjay/Sarthik/Web Projects/CLI-URL-Shortner/node_modules/yargs/build/index.cjs:1:52416)
    at Bt.parse (/Users/sanjay/Sarthik/Web Projects/CLI-URL-Shortner/node_modules/yargs/build/index.cjs:1:36100)
    at Bt.get [as argv] (/Users/sanjay/Sarthik/Web Projects/CLI-URL-Shortner/node_modules/yargs/build/index.cjs:1:55639)
    at Object.<anonymous> (/Users/sanjay/Sarthik/Web Projects/CLI-URL-Shortner/script.js:272:21)
@sindresorhus
Copy link
Owner

Make sure you're on the latest version of open.

@mrbing47
Copy link
Author

Make sure you're on the latest version of open.

Thanks, was working with v7.4.2.

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