xeokit-sdk
xeokit-sdk copied to clipboard
React integration glitch - Module not found: Error: Can't resolve 'asciify-image'
Describe the bug
I can not use .xkt V10
as it's supported by xeokit-sdk: ^2.1.0
which breaks in build.
To Reproduce
- Create CRA app.
- Install
@xeokit/xeokit-sdk": "2.3.0-beta-33
. - Run
npm run build
.
Screenshots
Desktop:
- OS: macOS Ventura
I just Googled "CRA" and found "Create React Application", so I'm assuming this is an issue with ReactJS integration. I just updated the title accordingly.
unfortunately we're limited in how much support we can offer for integration with 3rd-party application frameworks - the best we can do is try to follow best practices in xeokit SDK, and hope the frameworks follow them also.
I'll tag this as "help wanted" in case anyone with React expertise has a PR workaround.
in Vue2 I've added the following to my vue.config.js
file:
+ const webpack = require('webpack');
module.exports = {
configureWebpack: {
+ plugins: [
+ new webpack.IgnorePlugin({
+ resourceRegExp: /asciify-image/,
+ })
+ ]
},
}
maybe the same is possible for React