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
tmp>git clone https://github.com/robpaveza/edge-devtools-network-console.git
tmp>cd edge-devtools-network-console
tmp\edge-devtools-network-console>npm i
tmp\edge-devtools-network-console>set SKIP_PREFLIGHT_CHECK=true
tmp\edge-devtools-network-console>npm run install-and-build
tmp\edge-devtools-network-console>cd packages\network-console-vscode-extension
tmp\edge-devtools-network-console\packages\network-console-vscode-extension>mklink .\frontend ..\devtools-network-console\build
tmp\edge-devtools-network-console\packages\network-console-vscode-extension>npm i
tmp\edge-devtools-network-console\packages\network-console-vscode-extension>vsce package # repro's here
To outline what goes on here: the first npm i installs the top-level script dependencies. SKIP_PREFLIGHT_CHECK is required to avoid a build problem with a create-react-app script conflict in devtools-network-frontend. npm run install-and-build then runs npm install in both network-console-shared and devtools-network-console, and compiles them. Finally, we create a symbolic link from the devtools-network-console project's build folder, runs npm i, then tries to run the package command.
The text was updated successfully, but these errors were encountered:
In fairness, this does seem to be an issue with NPM, not with VSCE; but I'm not sure why VSCE requires this information in the first place (or, perhaps more accurately, why an error caused by extraneous rises to termination of VSCE).
Here's an example of why this seems weird to me, running npm ll:
but I'm not sure why VSCE requires this information in the first place
VSCE tries to filter out the devDependencies out of node_modules, such that they don't get included in the extension.
We could potentially figure out a --skip-dependency-check or similar and just have it include everything, if you know what you're doing, ie don't have any dev dependencies in node_modules.
My project is contained within a monorepo; the extension requires a library shared by a frontend component and the Extension itself.
When I try to run
vsce package
, I get the following output:The commit hash is here: robpaveza/edge-devtools-network-console@85733dc
To repro from a clean repo, here's what I did:
To outline what goes on here: the first
npm i
installs the top-level script dependencies. SKIP_PREFLIGHT_CHECK is required to avoid a build problem with a create-react-app script conflict in devtools-network-frontend.npm run install-and-build
then runsnpm install
in bothnetwork-console-shared
anddevtools-network-console
, and compiles them. Finally, we create a symbolic link from thedevtools-network-console
project'sbuild
folder, runsnpm i
, then tries to run the package command.The text was updated successfully, but these errors were encountered: