Given the files below:
mutation-types.js
export const SET_VALUE = 'SET_VALUE'
export const SET_PLACEHOLDER = 'SET_PLACEHOLDER'
my-file.js
import * as types from './mutation-types'
gives an error saying Uncaught TypeError: types__WEBPACK_IMPORTED_MODULE_1_.default is undefined. Even the official vuex repo uses this syntax with the same version of Vue, 3. Here you can check it.
Why isn't it possible to use the import like import * as name from './something'
?