[V6] How to import module LocalForage to app?

Hello everyone, I migrated from v5 to v6 and now i’m having difficulty in one issue that need your help to solve, pls.
In V5, I could easily import module by this way:
<script>
import LocalForage from '../localForage/dist/localforage.min.js';
export default {
//do something
}
</script>
And now i cant do the same thing. May you tell me where am I going wrong? Or teach me how to import module LocalForage (Or any module else) to app?
Sorry for my bad english. Thank you so much.

What is the error you receive? Check that your import file path is correct. Take a look at this for more: requirejs - Import file based on relative path in JavaScript - Stack Overflow

Hi. Thanks for reply me,
My code is:
<script>
import localForage from "../../localForage/dist/localforage.min.js"
export default () => {
return $render;
}
</script>
And I got the error:
Uncaught SyntaxError: The requested module '/@fs/D:/(foo)/localForage/dist/localforage.min.js' does not provide an export named 'default'
I try change to this:
import * as localForage from "../../localForage/dist/localforage.min.js"
export default () => {
localForage.setItem('1','2');
return $render;
}
And I got another error:
Uncaught (in promise) Error: TypeError: localForage.setItem is not a function
Hope you come back soon.

import localforage from 'localforage';

localforage.setItem('key','value');

Wow, that’s easy way. Thank you so much