luoxuhai / pcl.js

☁️ ⚡ Point Cloud Library (PCL) for browser, powered by WebAssembly.|在浏览器运行的点云库 (PCL),由 WebAssembly 提供支持。
https://pcl.js.org
MIT License
453 stars 38 forks source link

Cannot find module 'pcl.js' or its corresponding type declarations.ts(2307) #117

Closed raycaster08 closed 1 year ago

raycaster08 commented 1 year ago

Is there an existing issue for this?

Package Version

1.16.0

Current Behavior

use pcl.js in vite=4.3.9 & react=18.2.0 & typescript=4.7.4 project

import * as pcl from 'pcl.js';

error: Cannot find module 'pcl.js' or its corresponding type declarations

Expected Behavior

No response

Steps To Reproduce

No response

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

raycaster08 commented 1 year ago

I removed a line from tsconfig.json fixed it

"moduleResolution": "bundler",