Import vue in a erpnext page

how can I import vue file in a erpnextdoctype page,
if I try I get error “Uncaught SyntaxError: Cannot use import statement outside a module”

Why not search and learn from the code to identify what context you are after?

frappe@ubuntu1804lts:~/frappe-bench$ find . -name *.vue

Let us know what you discover!

edit: This for example frappe/FileBrowser.vue at develop · frappe/frappe · GitHub

Local searches on *.py, *.js and *.vue for ‘Uncaught SyntaxError’ or ‘Cannot use import statement outside a module’ came up empty, so who or what compiles the code is the question!?

frappe@ubuntu1804lts:~/frappe-bench$ find . -name *.py | xargs grep 'Uncaught SyntaxError'
1 Like

These learnings may shed light on your case - of course the SyntaxError points to an environment issue: