Open sahilsujeet1 opened 3 years ago
Hi @sahilsujeet1, could you please check the value of Kekule.VERSION? I myself can not reproduce those errors in generating 3D structures with kekule.min.js in the latest dist, :(.
Hi @sahilsujeet1, could you please check the value of Kekule.VERSION? I myself can not reproduce those errors in generating 3D structures with kekule.min.js in the latest dist, :(.
The version I am using is 0.9.3
Not the version setting in package.json, but the actual Kekule.VERSION value evaluated in the console of browser. You may also inspect the value of Kekule.scriptSrcInfo to check whether it is properly set.
Have a look at my console outputs.
Please try download the latest files in /dist directory of this repo and use them to replace the old ones in node_modules/kekule/dist/. With those manually replacement, the Kekule.VERSION should be 0.9.7 and Kekule.scriptSrcInfo should be set with proper values. Then please rerun your 3D structure generation code to check whether the issue is resolved.
Please try download the latest files in /dist directory of this repo and use them to replace the old ones in node_modules/kekule/dist/. With those manually replacement, the Kekule.VERSION should be 0.9.7 and Kekule.scriptSrcInfo should be set with proper values. Then please rerun your 3D structure generation code to check whether the issue is resolved.
I did what you said but now I get a different error:
Hi @sahilsujeet1, the 3D generation function is performed in a web worker in which some extra js files need to be loaded apart from the bundled script.js. So please copy the kekule/dist/extra directory to your script root dir (the path in browser should be http://localhost:5200/extra) and rerun the codes, :).
Hi @sahilsujeet1, the 3D generation function is performed in a web worker in which some extra js files need to be loaded apart from the bundled script.js. So please copy the kekule/dist/extra directory to your script root dir (the path in browser should be http://localhost:5200/extra) and rerun the codes, :).
I don't think this is possible in an Angular application
Why not? Just deploy some additional files.
Hi @sahilsujeet1, the 3D generation function is performed in a web worker in which some extra js files need to be loaded apart from the bundled script.js. So please copy the kekule/dist/extra directory to your script root dir (the path in browser should be http://localhost:5200/extra) and rerun the codes, :).
I don't think this is possible in an Angular application
You can use assets
field in angular.json to copy files into your dist directory.
I am trying to generate 3D structures from 2D molecules of composer. I have installed Kekule.js using npm and I am using it in an Angular application. I get the following error:![Screenshot from 2021-07-15 15-34-42](https://user-images.githubusercontent.com/83568871/125770404-4aa85202-9292-44d9-8d10-06f3228e004f.png)
Is this a real bug or am I doing a mistake. I followed the kekule.js at master but still got this error.