plotly / plotly/react-plotly.js

Problem with Gulp "Cannot find module"

Open
#93 19 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
138
Avg merge
3d 2h
Merged PRs (30d)
4

Description

I am trying to use react plotly but when gulp is bundling all files I get the following error:
Error: Cannot find module './core' from 'C:\Users\...\node_modules\plotly.js\dist'

I saw there have been problems when using webpack but I haven't found anything gulp related.

I followed this guide to setup and import Plotly: https://plot.ly/javascript/react/

Any help?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Gulp bundling step and the plotly.js/dist path named in the error, then compare the setup and import described in the React Plotly guide. Reproduce the missing-module failure and trace why the bundle cannot resolve './core'; done means the project bundles successfully with the documented React Plotly setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
build-system, data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.