-
Notifications
You must be signed in to change notification settings - Fork 18
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
TypeError: Object prototype may only be an Object or null: undefined #57
Comments
In case it helps, I'm also here with a webpack 5 issue, albeit with a better error message:
I'm guessing the webpack 5 bump you made removed the I'm probably going to move on to a new CSV writer (easy for my project) unless maintainers have plans to break out a module that doesn't have this dependency? |
There are endless CSV libraries on the npm registry, I haven't migrated yet but can update here when I find & vet one that doesn't rely on system polyfills. |
Ha! I just encountered this same problem again while trying to migrate to Vite, and found my old bug. I'm guessing there's still no fix? |
Alright, I exaggerated. I didn't end up finding any trustworthy CSV writings libs for the client that didn't require polyfill. So I moved my spreadsheet needs to the server with |
To addressing your specific need @kaiyoma, I also moved my project to vite (What a shame that CRA maintainers have ghosted it without even a deprecation notice). It looks like adding polyfills should be straightforward: https://www.npmjs.com/package/vite-plugin-node-polyfills However, I would recommend avoiding polyfills for the sanity of future developers. |
I'm currently trying to upgrade my project to webpack 5 and I'm now running into a bizarre compilation error with this package. When I start my app, I see this in the browser console:
The error appears to be coming from deep inside
csv-string
. What does this error mean?The text was updated successfully, but these errors were encountered: