"File is not defined" error when used wit nuxtjs ssr
See original GitHub issueJust installed package @2.3.6 (2.3.7 is not sync with npm yet). With a basic use I am getting this error “File is not defined”
import Form from 'form-backend-validation'
data(){
return {
form: new Form ({
email:'',
password:''
})
}
}

Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
ReferenceError: File is not defined when using useFieldArray ...
In a Next.js project, in an SSR-ed page, I'm not able to use useFieldArray . ... Steps to reproduce the behavior: Use a...
Read more >Solve “document is not defined” errors in Next.js | by WebTutPro
Because in the Node.js world, document is not defined, document is only available in browsers. There are three ways to fix that: 1....
Read more >Next.js: document is not defined - Stack Overflow
I think, in server rendering mode, the document is undefined. You should be able to use it inside class lifecycle methods or useEffect...
Read more >How to Fix "window is not defined" in Next.js - Upmostly
This issue has to do with Server-Side Rendering in Next.js. Next.js will by default try to use SSR for your site. This means...
Read more >Advanced Features: Error Handling - Next.js
Error Handling. This documentation explains how you can handle development, server-side, and client-side errors. Handling Errors in Development.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

workaround before fix this issue :
in your
nuxt.config.js:Yeah I appreciate and would prefer your solution. Just mentioned how I did that. Your solution would take care of other packages too, having such issues