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

model can not display when upgrade 3.4.7 to 4.6.1 #7609

Closed
1122334rr opened this issue Jan 26, 2025 · 8 comments
Closed

model can not display when upgrade 3.4.7 to 4.6.1 #7609

1122334rr opened this issue Jan 26, 2025 · 8 comments
Labels
needs more info Issue requires more information from poster

Comments

@1122334rr
Copy link

I update itwin from 3.4.7 to 4.6.1, and I copy parse-imdl-worker.js and checkbrowser.js on public/{xxx}/scripts . xxx is my viewer component .

Image

but parse-imdl-worker.js seems not loaded, my bim file can't view

@pmconne
Copy link
Member

pmconne commented Jan 26, 2025

See #6763

@1122334rr
Copy link
Author

1122334rr commented Jan 26, 2025

@pmconne

See #6763

I have copy related resource to public path.

Image

@1122334rr
Copy link
Author

otherwise, I need show local file at viewer, so I diretly use BaseViewer(filePath, not imodel id and itwin id), not viewer.

@aruniverse
Copy link
Member

Hi @1122334rr , are you using the <Viewer /> component from @itwin/web-viewer-react?

@aruniverse aruniverse added the needs more info Issue requires more information from poster label Jan 31, 2025
@1122334rr
Copy link
Author

Hi @1122334rr , are you using the <Viewer /> component from @itwin/web-viewer-react?

I used component from @itwin/viewer-react, not component from @itwin/web-viewer-react,.
Because I found seems don't have filePath param.
Otherwise, I use useWebViewerInitializer hooks from @itwin/web-viewer-react to initial.

@aruniverse
Copy link
Member

If you are trying to use the filePath prop I assume you must be trying to open a local imodel, which if so you should be using the @itwin/desktop-viewer-react and use the template that comes with it

@1122334rr
Copy link
Author

If you are trying to use the filePath prop I assume you must be trying to open a local imodel, which if so you should be using the @itwin/desktop-viewer-react and use the template that comes with it

but my product is not Electron app, have some other solution about this problem, can I use from @itwin/viewer-react and useWebViewerInitializer @itwin/viewer-react?

@1122334rr
Copy link
Author

sorryI found TileStorage have change, so I remove my cache, it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants