Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.wasmModule.OpenModel is not a function #239

Open
tptspe opened this issue Aug 28, 2023 · 3 comments
Open

this.wasmModule.OpenModel is not a function #239

tptspe opened this issue Aug 28, 2023 · 3 comments

Comments

@tptspe
Copy link

tptspe commented Aug 28, 2023

Hi team.

When I try to load the ifc file in my gatsby project, it occurs the error.

Error loading IFC. ifc.manager.js 71
TypeError: this.wasmModule.OpenModel is not a function at IfcAPI2.OpenModel (web-ifc-api.js:61986:1) at IFCParser.newIfcModel (IFCLoader.js:152:1) at IFCParser.parse (IFCLoader.js:132:1) at async IFCManager.parse (IFCLoader.js:2410:1) at async Object.eval [as onLoad] ifc.manager.js 71

My package versions are like this.
"gatsby": "^4.7.0",
"react": "^17.0.1",
"web-ifc": "^0.0.42",
"web-ifc-viewer": "^1.0.218"

Please help me.

@agviegas
Copy link
Collaborator

agviegas commented Sep 4, 2023

Hi @tptspe

We are going to officially release the new library components on September 20. This library will substitute web-ifc-three and web-ifc-viewer. Both WIV and WIT will remain up, but they will be deprecated and won't be maintained any longer.

All our efforts are going towards components now. The API is very similar, so I strongly suggest you make the leap and start using it. You can start using it now (check out the latest alpha version in npm or see the big-restructure branch in the repo. If you still face this issue with it, you can open an issue there and we'll take a look.

Cheers!

@FlorianB-DE
Copy link

FlorianB-DE commented Oct 16, 2023

Hi @agviegas

The API is similar?
before I needed 20 lines of code and it worked flawlessly but now I am at roughly 100 lines and I needed to make an account on your website and the buttons don't work, the stacking with pointer events don't work and the whole setup is 100x more complicated:

Please just give me a working example from top to bottom in at most 15 lines where I can add an IFC File via input. Everything more is over the top complicated.

Best regards,
Florian

@agviegas
Copy link
Collaborator

Hi @FlorianB-DE,

The API is indeed similar. The reason now it requires more code is because it's more modular/flexible. In programming there's always a tradeoff between abstraction and complexity. You might need more lines, but it can open IFC files orders of magnitude faster, and works for many more use cases. You can find many tutorials in the official documentation.

Keep in mind that we are working hard to offer all of this for free. If this new library is not useful for your use case, or you think you can make it better, please just make pull requests to improve this, fork any of our repositories and maintain it yourself, or start your own library/community from scratch.

Otherwise, we'll always be happy to listen to friendly feedback. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants