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
Use the "Export Slide Deck" Feature in Marp for VSCode
Choose the export option (the choice here does not matter, pdf doesn't work, html doesn't work, etc.)
Get Error Message "Failure to export: [TypeError] Cannot read properties of undefined (reading 'encrypted')"
Notes:
Setting a custom path to my current version of Chrome doesn't change the behaviour
The browser doesn't open, I have set the path to Edge's.exe and Opera's.exe as well as Chrome Canary's.exe to test whether this changes things and it does not
The document also does not export without the browser opening, I have confirmed by checking the export location for any new files
Expected behavior
The Slide Deck should export after showing Export Options
The browser should open during this process
Actual behavior
The Slide Deck asks whether to export as PDF or PNG, HTML, etc.
No matter which option is chosen, it always fails with the error message "Failure to export: [TypeError] Cannot read properties of undefined (reading 'encrypted')"
It does not open any browser.
Copy/Pasting the exact same code into the Web Version of MARP and printing as PDF works as expected and is my current workaround.
Additional information
Here is the code stripped of all confidential information, I have also tried exporting this exact version and it does not work in Marp for VSC, but it does work with my workaround as detailed in "Actual Behavior"
Since this was closed and it seems to fit better into linked issue #402, I have added my own Stack Trace to the issue and added a permanent fix.
However, I also want to add this here if someone finds this issue instead and wants a quick resolution:
In Issue #402 it was found that having either Azurite or Swagger Viewer installed causes the same issue I had.
I had neither of these two installed but I had vscode-spotify installed and that caused the issue.
Uninstalling the extension fixed my problem so it might do the same for anyone else with the same problem.
I will close this issue again now since it's been resolved.
Version of Marp Tool
MARP for VSCode v2.4.1
Operating System
Windows
Environment
How to reproduce
Notes:
Expected behavior
Actual behavior
Additional information
Here is the code stripped of all confidential information, I have also tried exporting this exact version and it does not work in Marp for VSC, but it does work with my workaround as detailed in "Actual Behavior"
`---
marp: true
theme: uncover
<style> h4 { color: #2596be; text-align: center; } h6 { color: #2596be; text-align: center; } </style><style> h5 { color: #2596be; text-align: center; } h6 { color: gray; text-align: center; } h2 { font-size: 30px; color: #2596be; } h3 { text-align: center; } h4 { text-align: center; } section { font-size: 25px; border-radius: 55px; outline: 2px solid #2596be; outline-offset:-10px; padding:220px; text-align: center; } img[src*="#thumbnail"] { width:150px; height:80px; } </style>
Department Notes / Handout
Department
by Author
Feedback:
Exampletext Lorem Ipsum Test
`
The text was updated successfully, but these errors were encountered: