I just created a js module file on wwwroot/js/base.js:
export const elements = {
...somthing
};
When I try to import it from wwwroot/js/site.js, such as
import {elements} from './base';
I geth this error:
Uncaught SyntaxError: Cannot use import statement outside a module
What am I missing?