jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers. Now includes React and Vue components.
https://intl-tel-input.com
MIT License
7.58k stars 1.94k forks source link

Getting process is not defined in vue/vite #1767

Closed maxkopych closed 2 weeks ago

maxkopych commented 3 weeks ago

When trying to import in vue/vite getting error about process is not defined . Not sure why we trying to access env vars inside FE component

<template>
    <IntlTelInput :options="{initialCountry: 'us'}"/>
</template>

<script setup>
    import IntlTelInput from "intl-tel-input/vue";
    import "intl-tel-input/styles";
</script>

image image

maxkopych commented 3 weeks ago

Sorry just realized it still in early stage. But hopefully gonna be helpful

jackocnr commented 2 weeks ago

Thanks for raising this. I've just released v24.3.5 with a fix.