I've encountered a problem with a library I've created that I'm trying to reproduce/fix by creating a simple Codepen that uses it. However, I haven't used Codepen before and I'm having trouble getting started, as I'm used to just referencing things through the ES6 import/export system and having webpack roll everything up.
The library I'm trying to debug is distributed on NPM and I've tried to import it through its unpkg URL. In the pen settings I also configure Vue to be imported immediately before it, as it requires that to be globally accessible. The library exposes the Vue component I'm trying to use as its default export, but I get ReferenceError: ExpandableGrid is not defined
when trying to use it.
Here is my pen. For the sake of convenience I've reproduced it as a snippet below:
new Vue({
el: "#app",
components: {
ExpandableGrid
}
});
#app {
width: 100vw;
height: 100vh;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17-beta.0/vue.js"></script>
<script src="https://unpkg.com/vue-expandable-grid@0.2.0-2/dist/vue-expandable-grid.umd.min.js"></script>
<div id="app">
<ExpandableGrid />
</div>