var ACTION_TYPES = require('../actions').ACTION_TYPES;
我尝试导入
{ACTION_TYPES.ACTION_TYPES} from ('../actions')
如何使用 import 切换到 ES6?
这应该有效:
import {ACTION_TYPES} from '../actions'