Bas950 / Language-Flag-Colors

A package with the color of every language's flag
MIT License
9 stars 1 forks source link

ambiguous indirect export: getLanguage #16

Closed Shahryar1991 closed 1 year ago

Shahryar1991 commented 2 years ago

Hi Sorry to bring this up again. This time I've a new error message and it say ambiguous indirect export: getLanguage. image I'm using these dependencies:

"dependencies": { "@chenfengyuan/vue-countdown": "^2.1.0", "@headlessui/vue": "^1.6.7", "@heroicons/vue": "^2.0.10", "@tinymce/tinymce-vue": "^5.0.0", "autoprefixer": "^10.4.8", "axios": "^0.27.2", "country-flag-emoji": "^1.0.3", "crypto-js": "^4.1.1", "cssnano": "^5.1.13", "firebase": "^9.9.3", "highcharts-vue": "^1.4.0", "jalali-moment": "^3.3.11", "language-flag-colors": "^2.1.1", "moment-jalaali": "^0.9.6", "postcss": "^8.4.16", "postcss-import": "^15.0.0", "sass": "^1.54.7", "tailwindcss-rtl": "^0.9.0", "tinymce": "^6.1.2", "tinymce-i18n": "^22.8.26", "uuid": "^8.3.2", "vue": "^3.2.37", "vue-gtag": "^2.0.1", "vue-router": "^4.1.5", "vuefire": "^2.2.5", "vuex": "^4.0.2" }, "devDependencies": { "@tailwindcss/forms": "^0.5.2", "@vitejs/plugin-vue": "^3.0.1", "tailwindcss": "^3.1.8", "vite": "^3.1.0" }

my code: import languages, { getLanguage } from "language-flag-colors"; console.log(languages, getLanguage("pt"))

image

ImRodry commented 2 years ago

You’re not giving us much to work with. Where did you get this error? What did you do to get it? Why do you have country-flag-emoji as a dependency?

Shahryar1991 commented 2 years ago

Please check out this project: https://github.com/Shahryar1991/vue-project

I used country-flag-emoji for testing. I'll remove that from my project.

I think this way is better to see what is wrong with my project.

ImRodry commented 2 years ago

@Shahryar1991 not sure if your issue is related to ESM but if it is, could you try updating to the latest version to see if it fixes it?