Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.prod.rollup.aot throws an error (on a fresh git clone) #1840

Closed
alarive opened this issue Mar 1, 2017 · 5 comments
Closed

build.prod.rollup.aot throws an error (on a fresh git clone) #1840

alarive opened this issue Mar 1, 2017 · 5 comments

Comments

@alarive
Copy link

alarive commented Mar 1, 2017

I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting

I cannot get build.prod.rollup.aot to work.

git clone https://github.com/mgechev/angular-seed
cd angular-seed
npm install
npm run build.prod.rollup.aot

It throws the following error

{ Error: Unexpected token
    at error (/home/alarive/angular-seed/node_modules/rollup/src/utils/error.js:2:14)
    at Module.error$1 [as error] (/home/alarive/angular-seed/node_modules/rollup/src/Module.js:303:2)
    at tryParse (/home/alarive/angular-seed/node_modules/rollup/src/Module.js:27:10)
    at new Module (/home/alarive/angular-seed/node_modules/rollup/src/Module.js:53:15)
    at /home/alarive/angular-seed/node_modules/rollup/src/Bundle.js:301:20
  code: 'PARSE_ERROR',
  pos: 92,
  loc: 
   { file: '/home/alarive/angular-seed/node_modules/rxjs/util/isArrayLike.js',
     line: 2,
     column: 78 },
  frame: '1: "use strict";\n2: var isArrayLike_1 = function (x) { return x && typeof x.length === \'number\'; });\n    

npm version : 3.10.10
node version : v6.10.0

@rikup88
Copy link

rikup88 commented Mar 1, 2017

Same here. Mac OS 10.11.6, npm 3.10.9, node 6.9.2.

@rikup88
Copy link

rikup88 commented Mar 1, 2017

Reverting RxJS to version 5.1.1 or earlier removed the error and the build succeeded.

@mgechev
Copy link
Owner

mgechev commented Mar 1, 2017

Reverted back temporary.

@alarive
Copy link
Author

alarive commented Mar 2, 2017

I can confirm it is working well with this version of RxJS.

@mgechev
Copy link
Owner

mgechev commented Mar 10, 2017

It's an issue in the commonjs plugin for rollup rollup/rollup-plugin-commonjs#168.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants