Invalid target option given to Dashboard
See original GitHub issueI’m trying to make a really simple setup and keep getting Uncaught Error: Invalid target option given to Dashboard
. I’m not sure why as all the options seem to be valid. It doesn’t create the dashboard so I can’t actually open the menu.
const Uppy = require("@uppy/core");
const Dashboard = require("@uppy/dashboard");
const Uploader = require("@uppy/xhr-upload");
const uppy = Uppy({
debug: true,
autoProceed: false,
restrictions: {
maxFileSize: 1000000,
maxNumberOfFiles: 1,
minNumberOfFiles: 1
}
})
.use(Dashboard, {
trigger: '#fileUpload'
})
.use(Uploader, {
endpoint: "/File/Upload",
method: "POST",
formData: true
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (1 by maintainers)
Top Results From Across the Web
Uppy installation is quite user unfriendly
Uncaught Error : Invalid target option given to Dashboard.If you meant to target an HTML element, please make sure that the element exists....
Read more >How to use uppy plugin with webpacker on rails - Stack Overflow
[Uppy] [23:29:46] Not installing DragDrop Plugin.js:165 Uncaught Error: Invalid target option given to DragDrop. Please make sure that the ...
Read more >Drop Target - Uppy
The @uppy/drop-target plugin lets your users drag-and-drop files on any element on the page, for example the whole page, document.body . Can be...
Read more >Top 5 uppy Code Examples - Snyk
Learn more about how to use uppy, based on uppy code examples created from the most popular ways it is used in public...
Read more >Winter '20 Patch 7.0 - Trailblazer Community
Embedded wave dashboard may fail to load during certain scenarios. ... Invalid target dialog reference error when deploying Einstein Bot Version.
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
@kvz @arturi it works fine. Thanks
Forgot the closing
</div>
, it should be:<div id="pick-files"></div>