Closed Xample closed 2 years ago
I'll take a look. In the meantime have you tried importing like this:
import { ZUI } from 'two.js/extras/jam/zui.js';
Looks like TypeScript only supports the package.json
custom exports property > 4.7.0 which is still in beta. See this thread. I'll remove the custom exports for now.
You should be able to use the latest npm v0.8.7
as described in your gist.
good job, I bumped to 0.8.7 and the error is gone, thank you. Regarding TS 4.7, I tried using the beta to see if it solved the issue but did not. Either it's too early, or the dependence needs to be exposed in a different way. Let's keep an eye after the official release.
Describe the bug
Error: Module not found: Error: Can't resolve 'two.js/extras/jsm/zui.js' in .../project/path...
Something seems to be wrong with the
types.d.ts
To Reproduce Steps to reproduce the behavior:
npm install -g @angular/cli
package.json
file:ng serve
Expected behavior The app to compile properly
Screenshots
Environment (please select one):
Desktop (please complete the following information):
Additional context Here is what I've noticed: