[英]Firebase-Admin, importing it to react application throws Module not found error
[英]Importing from another module throws error
使用以下命令时收到错误消息“意外令牌{”:
import { createStore } from 'redux'
我已经安装了节点11,并且我假设它支持导入功能? 还是节点本身不支持解构本身?
节点尚不支持ES6导入/导出。 您在这里有两种解决方案:
const { createStore } = require('redux');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.