Skip to content

Error when trying to launch a project for local development #5679

@tpengelly

Description

@tpengelly

As per this issue, which was closed despite being raised against v5: #5302

All screenshots are applicable to my issue

Q&A (please complete the following information)

OS: windows 11
Browser: Firefox
Version: 
Method of installation: npm
Swagger-Editor version: 5.0.3

Content & configuration

I am trying to run swagger-editor locally
I followed the startup instructions:

$ git submodule init
$ git submodule update
$ npm i
$ npm start

and I got an error:

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/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions