Closed mysterybear closed 2 years ago
Hello
I will have to recheck this topic i have been using the library with typescript without any issue.
Can you please provide your transpiler settings?
Hello,
I'm having the same issue with 0.1.0. It's just a minimal parcel project (default settings) with web-ifc-viewer and geo-three.
My tsconfig.json:
{
"compilerOptions": {
"target": "ES2016",
"module": "commonjs",
"resolveJsonModule": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
I noticed that if I change the package.json of geo-three from "main": "build/geo-three.js"
into "main": "build/Main.d.ts"
then that error will disappear.
and the library's tsconfig.json is shouting at me
No inputs were found in config file 'd:/BIM-Project/jsbimviewer/node_modules/geo-three/tsconfig.json'. Specified 'include' paths were '["source/**/*"]' and 'exclude' paths were '["node_modules/**/*","docs/**/*","build/**/*"]'.ts
Thank you.
@anhle1476 Hello
Thanks a lot for the suggestion i have changed the package.json file and updated the package on npm to version 0.1.1
Please test with this new version.
Cheers
@tentone thank you. It works for me 😁
Great! Thanks a lot!
Hi
I see there was #18 and #19
I've just done like
And then try to
import * as foo from "geo-three"
and I'm getting:This is with 0.1.0