Coder Social home page Coder Social logo

Comments (5)

yhatt avatar yhatt commented on June 2, 2024 1

Related: marp-team/marp#391

Seeing these cases, probably express looks like doing a something prank. Marp for VS Code is using express that is bundled to the extension, and usually it should never be affected from express library in other extensions. However, express or its internal may depend on some shared value or method globally by a some reason.

Potentially conflicted extensions

from marp-vscode.

ValenTranshuman avatar ValenTranshuman commented on June 2, 2024

This does not apply to my Issue because I have neither of the conflicting extensions listed here installed.

Stack Trace:
[Extension Host] TypeError: Cannot read properties of undefined (reading 'encrypted')
at IncomingMessage.protocol (c:\Users\thevi.vscode-insiders\extensions\shyykoserhiy.vscode-spotify-3.2.1\node_modules\express\lib\request.js:307:31)
at Function.values ()
at qe.findClassPath (c:\Users\thevi.vscode-insiders\extensions\marp-team.marp-vscode-2.4.1\node_modules@marp-team\marp-cli\lib\marp-cli-48291805.js:1:41653)
at qe.resolvePackage (c:\Users\thevi.vscode-insiders\extensions\marp-team.marp-vscode-2.4.1\node_modules@marp-team\marp-cli\lib\marp-cli-48291805.js:1:41390)
at Function.resolve (c:\Users\thevi.vscode-insiders\extensions\marp-team.marp-vscode-2.4.1\node_modules@marp-team\marp-cli\lib\marp-cli-48291805.js:1:40772)
at Function.resolveDefaultEngine (c:\Users\thevi.vscode-insiders\extensions\marp-team.marp-vscode-2.4.1\node_modules@marp-team\marp-cli\lib\marp-cli-48291805.js:1:40887)
at fromArguments (c:\Users\thevi.vscode-insiders\extensions\marp-team.marp-vscode-2.4.1\node_modules@marp-team\marp-cli\lib\marp-cli-48291805.js:44:64909)
at Jl (c:\Users\thevi.vscode-insiders\extensions\marp-team.marp-vscode-2.4.1\node_modules@marp-team\marp-cli\lib\marp-cli-48291805.js:44:125649)
at runMarpCli (c:\Users\thevi.vscode-insiders\extensions\marp-team.marp-vscode-2.4.1\lib\extension.js:3841:919586)
at doExport (c:\Users\thevi.vscode-insiders\extensions\marp-team.marp-vscode-2.4.1\lib\extension.js:3841:922459) (at console. (c:\Program Files\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:96:138842))
T @ workbench.desktop.main.js:sourcemap:90
$logExtensionHostMessage @ workbench.desktop.main.js:sourcemap:1573
N @ workbench.desktop.main.js:sourcemap:1573
M @ workbench.desktop.main.js:sourcemap:1573
H @ workbench.desktop.main.js:sourcemap:1573
G @ workbench.desktop.main.js:sourcemap:1573
(anonymous) @ workbench.desktop.main.js:sourcemap:1573
invoke @ workbench.desktop.main.js:sourcemap:86
deliver @ workbench.desktop.main.js:sourcemap:86
fire @ workbench.desktop.main.js:sourcemap:86
fire @ workbench.desktop.main.js:sourcemap:553
se.onmessage @ workbench.desktop.main.js:sourcemap:1671
workbench.desktop.main.js:sourcemap:747 Failure to export: [TypeError] Cannot read properties of undefined (reading 'encrypted')

from marp-vscode.

ValenTranshuman avatar ValenTranshuman commented on June 2, 2024

Following the Stack Trace, vscode-spotify seemed to be the issue.

Getting rid of the extension resolved my issue.
Please add the extension to your list of known conflicting extensions.

from marp-vscode.

yhatt avatar yhatt commented on June 2, 2024

Added ➕

Thanks for sharing the full stack trace too. I could not have reproduced this problem yet so it is going to be helpful to find a root issue.

-> expressjs/express#2994

from marp-vscode.

yhatt avatar yhatt commented on June 2, 2024

The latest release of Marp CLI v2.4.0 has no longer inspected the detail of express module while exporting (marp-team/marp-cli#503). I've confirmed #408 actually mitigate errors brought by conflicted extensions.

from marp-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.