Skip to content

'$mobx' is not exported from 'mobx'. #1189

Closed

Description

I'm unable to get this working in a React app. I ran the following to create a new react app and add redoc:

npx create-react-app my-app
cd my-app
npm i redoc mobx@^4.2.0 styled-components core-js

Then I added a spec file at /public/specs/spec.yaml and updated App.js to

import React from 'react';
import { RedocStandalone } from 'redoc';

function App() {
  return (
    <RedocStandalone specUrl="/specs/spec.yaml" />
  );
}

export default App;

After running npm start, I get the following:

Failed to compile.

./node_modules/redoc/node_modules/mobx-react/dist/mobxreact.esm.js
Attempted import error: '$mobx' is not exported from 'mobx'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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