Skip to content
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

Module not found: Error: Can't resolve 'v3d-web' on ... #1

Open
YHhaoareyou opened this issue Jun 24, 2022 · 0 comments
Open

Module not found: Error: Can't resolve 'v3d-web' on ... #1

YHhaoareyou opened this issue Jun 24, 2022 · 0 comments

Comments

@YHhaoareyou
Copy link

I installed your package by npm install v3d-web in my ReactJS project and imported it by import { V3DWeb } from 'v3d-web'; , but when I ran npm start , it showed the Module not found error. It seemed that the name of the package (v3d-web ) is not matched.
Then I checked out your demo website's source code and found that you guys are using import { V3DWeb } from 'v3d-web/dist/src'; , so I also tried to use this method to import, but this time other errors like the one below happened:

WARNING in ./node_modules/v3d-web/dist/src/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/yonghao/projects/my-app/node_modules/v3d-web/src/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/yonghao/projects/my-app/node_modules/v3d-web/src/index.ts'

It would be appreciated if you could share any solution, or fix th package if there is any. Thank you so much in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant