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
Thanks. it works.
Do you know how to import the css as well?
Now i got an error:
Failed to resolve module specifier "@uppy/core/dist/style.css". Relative references must start with either "/", "./", or "../".
when importing
import '@uppy/core/dist/style.css'
import '@uppy/dashboard/dist/style.css'
You probably need a CSS loader for whatever Rails uses for JS, likely Webpack. This is quite specific to your setup so will be hard for me to help you there.
Initial checklist
Link to runnable example
No response
Steps to reproduce
Create a new ruby 3.2.2. rails 7.1.1 project.
Importing Uppy with importmap with:
bin/importmap pin @uppy/core @uppy/drag-drop @uppy/dashboard --from jspm
in application.js
import { Uppy } from "@uppy/core";
import { Dashboard } from '@uppy/dashboard';
Expected behavior
Uppy dashboard to appear in page
Actual behavior
Got an error:
@uppy/dashboard does not provide an export named 'Dashboard'
The text was updated successfully, but these errors were encountered: