-
Notifications
You must be signed in to change notification settings - Fork 25
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
[HELP REQUESTED] Creating a parquet file in a chrome extension does not work #146
Comments
Hmm... Ok. I don't know much about React Native (been a while since I worked with it). My understanding of what you would need to do (might be wrong in a few ways):
|
Thanks for your response. The Chrome extension is written in pure React + Typescript not React Native. I will take a look at the link related to aliasing the |
Possible the new release might fix it as well if it was an issue in zenfs that was updated: https://github.com/LibertyDSNP/parquetjs/releases/tag/v1.8.4 |
This issue is kind of a message in a bottle type of issue, I don't really think that there is anything wrong with the dependency but I am looking for help. If it's not the right place, then by all means, please close the issue.
Basically, I am trying to create a Parquet file through a browser extension.
Browser extensions do not have access to the Node APIs so I opted to use the browser version of this dependency.
Steps to reproduce
The extension is written in typescript.
This is my tsconfig:
This is my current webpack config:
The dependencies versions' are:
I have file where I import the dependency and its types as such:
and then call the
openFile
function as such:Filename is just a random name.
I have a website with the same functionality so I know that my implementation is correct. After doing a bit of digging, I think the issue is related to the
fs
dependency which in the browser is replaced byzenfs
if I am correct.Expected behaviour
I am expecting the data to be added to the file.
Actual behaviour
Nothing happens, my best guess it that the stream never opens and therefore the promise in the function
osopen
never resolves.I can see the first console.log output from the example code I provided above but not the second one which should have been called once the stream was open.
Any logs, error output, etc?
No errors, no logs, the process juts hangs indefinitely.
...
Any other comments?
I realize this is a bit of a long shot and that my use case is very niche but I am open to trying anything to make this work.
...
The text was updated successfully, but these errors were encountered: