vue-sticky-directive icon indicating copy to clipboard operation
vue-sticky-directive copied to clipboard

Uncaught SyntaxError: The requested module does not provide an export named 'default'

Open aberbenni opened this issue 5 years ago • 0 comments

Importing vue-sticky-directive.min.js from CDN leads to:

"Uncaught SyntaxError: The requested module https://cdn.jsdelivr.net/npm/[email protected]/vue-sticky-directive.min.js does not provide an export named default" error in browser.

Here is the code in browser:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/vue-sticky-directive.min.js"></script>

<script type="module">    
    import Sticky from 'https://cdn.jsdelivr.net/npm/[email protected]/vue-sticky-directive.min.js';
    
    Vue.directive('Sticky', Sticky);
    ...
<script> 

aberbenni avatar Sep 11 '20 07:09 aberbenni