I would like to define a default value if a prop is not passed to my functional component. This default value is an environement variable.
When I try the following, compilation will throw an error TypeError: Cannot read property 'env' of undefined
<template functional>
<div class="header__small">{{ props.header_small ? props.header_small : process.env.VUE_APP_DEFAULTHEADER }}</div>
</template>
The same happens if I try with parent.process.env.VUE_APP_DEFAULTHEADER
The env variable are working fine in every other classic component accross the app. It just won't work with functional ones. Ternary operator to define a default value works well also if I pass it any other value, just not process.env.