Skip to content

Instantly share code, notes, and snippets.

@sunjay sunjay/Error Secret
Created Feb 21, 2016

What would you like to do?
Rollup Bug
Module /tmp/rollup-bug/node_modules/redux/es/index.js does not export default (imported by /tmp/rollup-bug/node_modules/react-redux/lib/utils/wrapActionCreators.js)
Error: Module /tmp/rollup-bug/node_modules/redux/es/index.js does not export default (imported by /tmp/rollup-bug/node_modules/react-redux/lib/utils/wrapActionCreators.js)
at Module.trace (/usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Module.js:620:30)
at /usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Module.js:200:35
at Array.forEach (native)
at /usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Module.js:197:25
at Array.forEach (native)
at Module.bindAliases (/usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Module.js:186:29)
at /usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Bundle.js:81:44
at Array.forEach (native)
at /usr/lib/node_modules/rollup/www/ROLLUP/rollup/src/Bundle.js:81:18
at tryCatch (/usr/lib/node_modules/rollup/www/ROLLUP/rollup/node_modules/es6-promise/lib/es6-promise/-internal.js:182:12)
Type rollup --help for help, or visit
import {Provider} from 'react-redux';
"name": "rollup-bug",
"version": "1.0.0",
"description": "",
"main": "rollup.config.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"author": "",
"license": "MIT",
"dependencies": {
"react": "^0.14.7",
"react-redux": "^4.4.0",
"redux": "^3.3.1"
"devDependencies": {
"babel": "^6.5.2",
"babel-preset-es2015": "^6.5.0",
"babel-preset-es2015-rollup": "^1.1.1",
"babel-preset-react": "^6.5.0",
"rollup": "^0.25.4",
"rollup-plugin-babel": "^2.3.9",
"rollup-plugin-commonjs": "^2.2.1",
"rollup-plugin-node-resolve": "^1.4.0"
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
export default {
// The entry and destination need to be specified
entry: 'index.jsx',
dest: 'index.js',
format: 'iife',
intro: '/* Author: Sunjay Varma <> */',
sourceMap: 'inline',
plugins: [
babelrc: false,
exclude: 'node_modules/**',
presets: ["react", "es2015-rollup"]
jsnext: true,
main: true,
browser: true,
extensions: ['.js', '.jsx']
include: 'node_modules/**'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.