Can I use variables within the data in vue.js

// common.types
export const COMPONENT_TYPES = { TIME: "TIME" }

// App.vue
data: () => ({
  componentType: COMPONENT_TYPES.TIME
}) 

Sometimes undefined issues occur at very small frequencies. It’s only like that in safari.

Below is an error message….

undefined is not an object (evaluating ‘constants_design_types__WEBPACK_IMPORTED_MODULE_0_[“COMPONENT_TYPES”].TIME’)