You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the activestorage npm package in a NextJs app
I have imported the DirectUpload component import { DirectUpload } from 'activestorage';
Error emerges when this code to upload the file is hit
Import trace for requested module:
./node_modules/activestorage/app/assets/javascripts/activestorage.js
./src/components/admin/forms/products/NewProduct.tsx
✓ Compiled in 1015ms (3194 modules)
⚠ Fast Refresh had to perform a full reload due to a runtime error.
⨯ ReferenceError: File is not defined
at /home/annastacia/webcafe/dawatele/web/node_modules/activestorage/app/assets/javascripts/activestorage.js:438:19
I have used this before in a Vite + ReactJS app recently and I don't encounter the same error
The text was updated successfully, but these errors were encountered:
I'm using the activestorage npm package in a NextJs app
I have imported the DirectUpload component
import { DirectUpload } from 'activestorage';
Error emerges when this code to upload the file is hit
Error stack:
I have used this before in a Vite + ReactJS app recently and I don't encounter the same error
The text was updated successfully, but these errors were encountered: