mov-fe-lib-code-editor 1.1.3-1
Install from the command line:
Learn more about npm packages
$ npm install @mov-ai/mov-fe-lib-code-editor@1.1.3-1
Install via package.json:
"@mov-ai/mov-fe-lib-code-editor": "1.1.3-1"
About this version
Mov.ai's library to expose Code Editors
- MonacoCodeEditor
Open the project in VS Code and then choose to reopen in container. Once the container is ready, open a new terminal inside VS Code and run
npm ci
npm run storybook
Note: ~/.npmrc must be previously configured with access to github
During development requests are proxied using http-proxy-middleware. Edit src/setupProxy.js to add more endpoints.
## Troubleshooting
### Invalid hook
When running the lib-code-editor locally from IDE or another app, you might have an issue with invalid hooks with the following message: "Error: Invalid hook call. Hooks can only be called inside of the body of a function component."
To fix it, stop the development server of IDE (or the other app), stop the buildDev of lib-scene and run the following command in lib-scene repository root:
`npm link ../<app_directory_name>/node_modules/react`