jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers. React and Vue components also included.
https://intl-tel-input.com
MIT License
7.67k stars 1.95k forks source link

Getting process is not defined in vue/vite #1767

Closed maxkopych closed 2 months ago

maxkopych commented 2 months 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 2 months ago

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

jackocnr commented 2 months ago

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