-
Notifications
You must be signed in to change notification settings - Fork 133
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
Error on web-ifc-three instalation in a Next.js app #166
Comments
There is a workaround is in the discord server: https://discord.com/channels/799990228336115742/1091078047228235877 Just need to transpile packages |
I think the package.json for web-ifc-three is wrong. |
As a further problem, I tried rewriting the web-ifc-three's package.json to reference the IFCLoader.umd.cjs included with web-ifc-three in the "main" property, but this UMD is trying to load an ESM |
I am using the following post-install script as a workaround to avoid build issues in my angular application. `const fs = require('fs'); const filePath = path.join(__dirname, 'node_modules/.pnpm/[email protected][email protected]/node_modules/web-ifc-three/IFCLoader.js'); fileContent = fileContent.replace( fs.writeFileSync(filePath, fileContent);` |
If i have a next.js app i install web-ifc-three, the following screen will appear:
The text was updated successfully, but these errors were encountered: