question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid target option given to Dashboard

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
atifaziz2commented, May 17, 2019

@kvz @arturi it works fine. Thanks

1reaction
arturicommented, May 17, 2019

Forgot the closing </div>, it should be: <div id="pick-files"></div>

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found