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

TS + React + WP5 resolve errors #230

Open
del1e opened this issue Jul 5, 2023 · 1 comment
Open

TS + React + WP5 resolve errors #230

del1e opened this issue Jul 5, 2023 · 1 comment

Comments

@del1e
Copy link

del1e commented Jul 5, 2023

Hello everyone!
Can anyone please help me with web-ifc-viewer using react + typescript + webpack5?
Could you please advise on how to solve this?

ERROR in ./node_modules/web-ifc-viewer/dist/ifc-viewer-api.js 1:0-151 Module not found: Error: Can't resolve './components' in 'node_modules/web-ifc-viewer/dist' Did you mean 'index.js'? BREAKING CHANGE: The request './components' 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.

@del1e del1e changed the title [web-ifc-viewer]: TS + React + WP5 resolve errors TS + React + WP5 resolve errors Jul 5, 2023
@agviegas
Copy link
Collaborator

Hi! Did you check out the react example available here?

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

2 participants