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

rdkit package is incompatible with react-scripts #10

Open
sfluegel05 opened this issue Dec 12, 2024 · 0 comments
Open

rdkit package is incompatible with react-scripts #10

sfluegel05 opened this issue Dec 12, 2024 · 0 comments

Comments

@sfluegel05
Copy link
Contributor

I am working on integrating rdkit-js to draw some molecules and add highlights. During the process, I ran into this error:

Module not found: Error: Can't resolve 'fs' in 'C:\Users\Simon Flügel\Desktop\Chebifier\react-app\node_modules\@rdkit\rdkit\dist'

Apparently, react-scripts does not support the fs package. Instead, this comment suggests to use react-app-rewired. That seems to solve the issue.

I will implement this solution on the chemlog-integration branch.

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

1 participant