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
ERROR in ./src/plugins/editor-monaco/components/MonacoEditor/MonacoEditor.jsx 8:0-40
Module not found: Error: You attempted to import /node_modules/monaco-editor which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.
in the package.json "monaco-editor": "npm:@codingame/monaco-vscode-editor-api@=5.2.0",
replace with: "@codingame/monaco-vscode-editor-api": "5.2.0",
npm i
in all files in the src/ import directory * as monaco from 'monaco-editor';
replace with: import * as monaco from '@codingame/monaco-vscode-editor-api';
Q&A (please complete the following information)
Content & configuration
I am trying to run swagger-editor-next locally
I followed the startup instructions:
and I got an error:
I also checked:
And I tried
npm dedupe
but the mistake remained the sameI know that these are the features of react-create-app, but I'm not sure that I should somehow solve this through overrides
Screenshots
The text was updated successfully, but these errors were encountered: