how to load this js file in requirejs?
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
my requirejs-config.js file=?
var config = {
paths: {
modelviewer: "Ajith_CustomModule/js/modelviewer.min",
.....
.....
.....
and load this file in my phtml file
<script type="module">
require(['jquery'.......,'modelviewer'],function($,..,model){
});
</script>
.....
.....
.....
shows this error => Uncaught SyntaxError: Unexpected token 'export'
anybody please help me to fix this problem.
Thanks in advance