-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
unstable_parseMultipartFormData causes "ReferenceError: Buffer is not defined" error #2409
Comments
Guess you need to define your uploadHandler inside the action function. Run into the same issue when following the docs. |
I think i tried that, but why does defining a component export solve that? |
@gabimor It's hard to say without seeing the actual route file. Can you post it? You can remove any private code. |
This seems to be related to #2248 |
Duplicate of #2248, working on it! Will update there when we can. |
for me what worked was: import { defineConfig } from 'vite' export default defineConfig({ reply to this comment: |
What version of Remix are you using?
1.2.3
Steps to Reproduce
export default Component
)adding a default export solves this:
Expected Behavior
not sure what the issue is but there should be a better error explaining it. and to my understanding this should just work even without a component export
Actual Behavior
"ReferenceError: Buffer is not defined" in the browser
The text was updated successfully, but these errors were encountered: