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
Describe the bug
When I try to use this module from a React app after installing it with npm,
To Reproduce
Steps to reproduce the behavior:
Create a React app: npx create-react-app test
Install the module in the app: npm i d3-hypertree
Import the module in src/App.js: import * as hyt from 'd3-hypertree';
Start the app: npm start
This error appears on the console:
Failed to compile.
./node_modules/d3-hypertree/dist/js/components/hypertree/hypertree.js
Module not found: Can't resolve 'ducd' in '/Users/jude/git/test/test/node_modules/d3-hypertree/dist/js/components/hypertree'
Expected behavior
The contents of the module should be imported without error.
Screenshots
Here's the error in the browser:
Desktop (please complete the following information):
OS: macOS Catalina Version 10.15.5
Browser: Firefox 78.0.2 (64-bit)
Version: See above
Smartphone (please complete the following information):
N/A
Additional context
None
NOTE: Unfortunately, I won't be able to participate in further discussion in this thread.
The text was updated successfully, but these errors were encountered:
running gulp build at the root of the ducd repository
copying the generated dist in the ducd folder in node_modules in my project
The explanation is that when you run npm install ducd, the package is missing the source code (there is no dist folder).
So when you require ducd, the main referenced in ducd/package.json doesn't exist and npm can't resolve the package.
Describe the bug
When I try to use this module from a React app after installing it with npm,
To Reproduce
Steps to reproduce the behavior:
npx create-react-app test
npm i d3-hypertree
src/App.js
:import * as hyt from 'd3-hypertree';
npm start
Expected behavior
The contents of the module should be imported without error.
Screenshots
Here's the error in the browser:
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
None
NOTE: Unfortunately, I won't be able to participate in further discussion in this thread.
The text was updated successfully, but these errors were encountered: