[Pkg-javascript-devel] Packaging issue in node-redux: Unexpected token (three dots)
Nicolas Mora
nicolas at babelouest.org
Mon Apr 27 01:27:54 BST 2020
Hello,
I'm helping the Covid biohackathon by the Debian Med team with the
package node-redux [1], but I have a problem in the package builder. The
command 'rollup -c' exits with the following error.
root at docker-sid:/opt/redux-4.0.1 # rollup -c
src/index.js → lib/redux.js...
[!] (babel plugin) SyntaxError: /opt/redux-4.0.1/src/applyMiddleware.js:
Unexpected token (37:6)
src/applyMiddleware.js (37:6)
SyntaxError: /opt/redux-4.0.1/src/applyMiddleware.js: Unexpected token
(37:6)
35 |
36 | return {
> 37 | ...store,
| ^
38 | dispatch
39 | }
40 | }
at Parser.pp.raise
(/usr/share/nodejs/babylon/lib/parser/location.js:22:13)
at Parser.pp.unexpected
(/usr/share/nodejs/babylon/lib/parser/util.js:97:8)
at Parser.pp.parseIdentifier
(/usr/share/nodejs/babylon/lib/parser/expression.js:1132:10)
at Parser.pp.parsePropertyName
(/usr/share/nodejs/babylon/lib/parser/expression.js:939:110)
at Parser.pp.parseObj
(/usr/share/nodejs/babylon/lib/parser/expression.js:828:12)
at Parser.pp.parseExprAtom
(/usr/share/nodejs/babylon/lib/parser/expression.js:494:19)
at Parser.pp.parseExprSubscripts
(/usr/share/nodejs/babylon/lib/parser/expression.js:269:19)
at Parser.pp.parseMaybeUnary
(/usr/share/nodejs/babylon/lib/parser/expression.js:249:19)
at Parser.pp.parseExprOps
(/usr/share/nodejs/babylon/lib/parser/expression.js:179:19)
at Parser.pp.parseMaybeConditional
(/usr/share/nodejs/babylon/lib/parser/expression.js:156:19)
Does anyone have a clue? I tried installing various kinds of node-rollup
and node-babel plugins and tried lots of different babelrc but I was
never able to fix it.
Be sure that the final package will have a lot of cleanup as well as
pkg-js-tools used, but so far I try to at least be able to build the
package.
Thanks in advance
/Nicolas
[1] - https://salsa.debian.org/babelouest/node-redux
More information about the Pkg-javascript-devel
mailing list