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

Protocol Error (Browser.grantPermissions) #15

Closed
AbdulSayyed opened this issue Feb 12, 2020 · 2 comments
Closed

Protocol Error (Browser.grantPermissions) #15

AbdulSayyed opened this issue Feb 12, 2020 · 2 comments

Comments

@AbdulSayyed
Copy link

I ran the command npx marp --preview ./slides/Deck.md and I get the following error

(node:9048) UnhandledPromiseRejectionWarning: Error: Protocol error (Browser.grantPermissions): Unknown permission type: clipboardRead
at K:\ABC-Docs@Archives\2020\node-marp\node_modules\carlo\node_modules\puppeteer-core\lib\Connection.js:74:56
at new Promise ()
at Connection.send (K:\ABC-Docs@Archives\2020\node-marp\node_modules\carlo\node_modules\puppeteer-core\lib\Connection.js:73:12)
at BrowserContext.overridePermissions (K:\ABC-Docs@Archives\2020\node-marp\node_modules\carlo\node_modules\puppeteer-core\lib\Browser.js:349:28)
at BrowserContext. (K:\ABC-Docs@Archives\2020\node-marp\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:109:23)
at App.init_ (K:\ABC-Docs@Archives\2020\node-marp\node_modules\carlo\lib\carlo.js:62:11)
at Object.launch (K:\ABC-Docs@Archives\2020\node-marp\node_modules\carlo\lib\carlo.js:627:15)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
(node:9048) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:9048) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
any suggestion ?

@yhatt
Copy link
Owner

yhatt commented Feb 12, 2020

FYI: marp-team/marp-cli#190

@yhatt
Copy link
Owner

yhatt commented Mar 20, 2020

In the latest Marp CLI v0.17.3, --preview option has deprecated due to the unmaintained dependent package carlo (GoogleChromeLabs/carlo#163 (comment)) and incompatible Chrome >= 81.

The current stable Chrome was supposed to be incompatible version 81, but upcoming releases for Chrome >= 81 was paused due to adjusted schedules probably affected by COVID-19. --preview should work correctly as long as using stable Chrome 80.

To know what happening, plaese track marp-team/marp-cli#211 instead of here.

@yhatt yhatt closed this as completed Mar 20, 2020
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