Skip to content

Use plotly-dist as peer dep to fix import issues #94

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
## Installation

```bash
$ npm install react-plotly.js plotly.js
$ npm install react-plotly.js plotly.js-dist
```

## Quick start
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"uglify-js": "^3.0.26"
},
"peerDependencies": {
"plotly.js": ">1.34.0",
"plotly.js-dist": ">1.34.0",
"react": ">12.0.0"
},
"browserify-global-shim": {
Expand Down
2 changes: 1 addition & 1 deletion src/react-plotly.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import plotComponentFactory from './factory';
import Plotly from 'plotly.js/dist/plotly';
import Plotly from 'plotly.js-dist/plotly';

const PlotComponent = plotComponentFactory(Plotly);

Expand Down