'apache-arrow' module not found error


I created a custom component, but when I run npm start, I get an error below:

export 'Table' (imported as 'Table') was not found in 'apache-arrow' (module has no exports)

My component doesn’t use Table. I’m not sure how to resolve this issue. Could someone please help? I’ve upgraded both Streamlit and npm.

Thank you!

I’ve upgraded both Streamlit and npm.

I had the same error. I was able to fix it (after a lot of effort) by minimizing the differences in the package.json dependencies when compared to the original streamlit-component-template. I suggest to copy the dependencies from Streamlit’s package.json to your own project to start.

1 Like

@Amit_Kumar, Yes, I copied the dependencies from the package.json in Streamlit template project, and it worked! Thank you for sharing.