We use "web-ifc-viewer:1.0.216" in our project and it works fine.
We tried to update to 1.0.217 and it work fine.
Then, we tried to update to the version "1.0.218" and we have the following error when running "npm start":
ERROR in ./src/app/components/ifc-displayer/ViewerIFC.ts 59:24-36
export 'IfcViewerAPI' (imported as 'IfcViewerAPI') was not found in 'web-ifc-viewer' (module has no exports)
We also have the following warning:
WARNING in ./node_modules/web-ifc/web-ifc-api.js 21:70-77
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
And the following error:
BREAKING CHANGE: The request './base-types' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
We have the exact same issue with CameraProjections.
This happens when we build the project from scratch (I mean, I deleted the "node_modules", rebuild everything, and then it happens).
When I switch back to version 1.0.217, and rebuild the project, the error goes away.
I can't find why this happens, but it seems that somethin in ifc.js typescript types is broken.
Maybe you can point me in the right direction or fix it on you end ?
I use ReactJS 18.2.0 and Typescript 4.9.5. I stay available if you need more information.
Btw, great project :) Thank you very much ! Keep up the good work !
We use "web-ifc-viewer:1.0.216" in our project and it works fine.
We tried to update to 1.0.217 and it work fine.
Then, we tried to update to the version "1.0.218" and we have the following error when running "npm start":
We also have the following warning:
And the following error:
We have the exact same issue with CameraProjections.
This happens when we build the project from scratch (I mean, I deleted the "node_modules", rebuild everything, and then it happens).
When I switch back to version 1.0.217, and rebuild the project, the error goes away.
I can't find why this happens, but it seems that somethin in ifc.js typescript types is broken.
Maybe you can point me in the right direction or fix it on you end ?
I use ReactJS 18.2.0 and Typescript 4.9.5. I stay available if you need more information.
Btw, great project :) Thank you very much ! Keep up the good work !