Module not found: Error: Can't resolve 'v3d-web' on ...
YHhaoareyou opened this issue · comments
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!