I am trying to import a js file with static path which is working fine, but when I change path to dynamic it give me the error (Uncaught SyntaxError: Unexpected token '<' (at common.js:1:1) main.80ab3b6a.js:942 undefined) if I put the path static like ~/ALLPATH/translation/en/tarnslate.js then it is working, but if I change it to dynamic then give me the error
const ln = $scope.locale;
if (ln) {
$scope.commonLang = (await import(`~/ALLPATH/translation/translation/${ln}/tarnslate.js`)).languages;
console.log($scope.commonLang);
}