-
-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Description
Describe the bug
Danfojs cannot be loaded in a Vitejs project.
To Reproduce
Steps to reproduce the behavior:
- Create a new Vitejs project
- Install danfojs as a dependency
- Import it in any module of the application with
import * as dfd from 'danfojs'
- See the error below:
[plugin:vite:import-analysis] Failed to resolve entry for package "danfojs". The package may have incorrect main/module/exports specified in its package.json.
Expected behavior
The import works and you can use danfojs in your Vitejs app
Repro
You can see a repro in CodeSandbox here. Creating a new Vitejs application locally leads to the same issue (meaning that it's not an issue with CodeSandbox), and the issue happens regardless of whether you use TypeScript or JavaScript.
michael1997, ucchiee and vladyslav-n
Metadata
Metadata
Assignees
Labels
No labels