Closed jankeromnes closed 4 years ago
So first of all, the first line shouldn't be npm install
but yarn install
, because https://github.com/Binaryify/OneDark-Pro has a yarn.lock
file.
But when I follow these steps:
yarn
OVSX_PAT
npx ovsx publish --yarn
I still get the same error:
gitpod /workspace/OneDark-Pro $ npx ovsx publish --yarn
npx: installed 67 in 3.581s
Executing prepublish script 'yarn run vscode:prepublish'...
❌ Command failed: yarn run vscode:prepublish
warning material-theme@3.2.4: The engine "vscode" appears to be invalid.
warning material-theme@3.2.4: The engine "vscode" appears to be invalid.
warning material-theme@3.2.4: The engine "vscode" appears to be invalid.
/workspace/OneDark-Pro/node_modules/ts-node/src/index.ts:421
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/themes/editor.ts(7,24): error TS2307: Cannot find module './editorTheme/oneDarkPro'.
at createTSError (/workspace/OneDark-Pro/node_modules/ts-node/src/index.ts:421:12)
at reportTSError (/workspace/OneDark-Pro/node_modules/ts-node/src/index.ts:425:19)
at getOutput (/workspace/OneDark-Pro/node_modules/ts-node/src/index.ts:530:36)
at Object.compile (/workspace/OneDark-Pro/node_modules/ts-node/src/index.ts:735:32)
at Module.m._compile (/workspace/OneDark-Pro/node_modules/ts-node/src/index.ts:814:43)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.require.extensions.(anonymous function) [as .ts] (/workspace/OneDark-Pro/node_modules/ts-node/src/index.ts:817:12)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
error Command failed with exit code 1.
error Command failed with exit code 1.
error Command failed with exit code 1.