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

Fix npm install error by removing monaco-vim and updating dependencies #2

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

BelfordZ
Copy link
Member

@BelfordZ BelfordZ commented Nov 28, 2024

Resolve npm install error by removing monaco-vim dependency and ensuring consistent versions of react-scripts and @rescripts/utilities.

  • Remove monaco-vim dependency:

    • Delete monaco-vim from packages/inspector/package.json and packages/playground/package.json.
    • Delete packages/inspector/src/hooks/useMonacoVimMode.ts and packages/playground/src/hooks/useMonacoVimMode.tsx.
    • Delete packages/playground/__mocks__/monaco-vim.js.
  • Update files to remove useMonacoVimMode hook:

    • Remove import and usage of useMonacoVimMode in packages/inspector/src/containers/JSONRPCRequestEditor.tsx.
    • Remove import and usage of useMonacoVimMode in packages/inspector/src/containers/OptionsEditor.tsx.
    • Remove import and usage of useMonacoVimMode in packages/playground/src/App.tsx.

For more details, open the Copilot Workspace session.

Resolve npm install error by removing `monaco-vim` dependency and ensuring consistent versions of `react-scripts` and `@rescripts/utilities`.

* **Remove `monaco-vim` dependency:**
  - Delete `monaco-vim` from `packages/inspector/package.json` and `packages/playground/package.json`.
  - Delete `packages/inspector/src/hooks/useMonacoVimMode.ts` and `packages/playground/src/hooks/useMonacoVimMode.tsx`.
  - Delete `packages/playground/__mocks__/monaco-vim.js`.

* **Update files to remove `useMonacoVimMode` hook:**
  - Remove import and usage of `useMonacoVimMode` in `packages/inspector/src/containers/JSONRPCRequestEditor.tsx`.
  - Remove import and usage of `useMonacoVimMode` in `packages/inspector/src/containers/OptionsEditor.tsx`.
  - Remove import and usage of `useMonacoVimMode` in `packages/playground/src/App.tsx`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/open-rpc/tools?shareId=XXXX-XXXX-XXXX-XXXX).
* **Dependencies**
  - Update `@rescripts/cli` to the latest version in `packages/inspector/package.json`, `packages/playground/package.json`, and `packages/logs-react/package.json`
  - Update `@rescripts/utilities` to version `0.0.7` in `packages/inspector/package.json`, `packages/playground/package.json`, and `packages/logs-react/package.json`
  - Update `react-scripts` to version `3.4.4` in `packages/inspector/package.json`, `packages/playground/package.json`, `packages/logs-react/package.json`, and `packages/docs-react/package.json`
  - Update the `engines` field to `>=18.20.5` in `package.json`

* **Node.js Version**
  - Add `.nvmrc` files specifying Node.js version `18.20.5` in the root directory and in each package directory
  - Update `.node-version` and `.nodenv` to `18.20.5`

* **Documentation**
  - Add instructions for using `nvm` to manage Node.js versions in `README.md`
* **Remove `useMonacoVimMode` hook:**
  - Delete `packages/inspector/src/hooks/useMonacoVimMode.ts`
  - Delete `packages/playground/src/hooks/useMonacoVimMode.tsx`
  - Remove import and usage of `useMonacoVimMode` in `JSONRPCRequestEditor.tsx`, `OptionsEditor.tsx`, and `App.tsx`
  - Delete `packages/playground/__mocks__/monaco-vim.js`

* **Update dependencies:**
  - Remove `monaco-vim` dependency from `inspector/package.json` and `playground/package.json`
  - Update `react-scripts`, `@rescripts/utilities`, and `@rescripts/cli` versions in `inspector/package.json`, `playground/package.json`, `logs-react/package.json`, and `docs-react/package.json`
  - Fix errors in `logs-react/package.json`
@BelfordZ BelfordZ merged commit b693e15 into master Nov 28, 2024
0 of 3 checks passed
@BelfordZ BelfordZ deleted the BelfordZ/fix-npm-install-error branch November 28, 2024 22:53
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

Successfully merging this pull request may close these issues.

2 participants