I am trying to install this project locally as I need it as a dependency in my React 16.0.0 project (the current npm version doesn't yet support React 16.0.0, so I'm trying to install it as a git dependency with npm-git-install
).
> rollup -c && cross-env NODE_ENV=production rollup -c
Creating development bundle...
src/index.js → dist/styled-flexboxgrid.js, dist/styled-flexboxgrid.es.js...
[!] (commonjs plugin) SyntaxError: Unexpected token (29:4) in ~/projects/react-styled-flexboxgrid/src/config.js
src/config.js (29:4)
SyntaxError: Unexpected token (29:4) in ~/projects/react-styled-flexboxgrid/src/config.js
at error (~/projects/react-styled-flexboxgrid/node_modules/rollup/dist/rollup.js:185:14)
at Promise.resolve.then.catch.err (~/projects/react-styled-flexboxgrid/node_modules/rollup/dist/rollup.js:9448:6)
I'm not sure what's going on here, but it looks like maybe the babel spread plugin isn't called during transpiling before rollup bundles it. Has anyone else had that error before? Am I missing a global dependency that's not specified in the package.json
?