I am trying to mount a component on a div element using document.querySelector('.widget') but it throws an error
main.js looks like
const app = new App({
target: document.querySelector('.widget'),
});
index.html looks like
<body>
<script src='bundle.js'></script>
<div class="widget" id="widget"></div>
</body>
I get an error Uncaught Error: 'target' is a required option