Fuse-box: v4 won't work with jsx in js files

Created on 28 Aug 2019  路  3Comments  路  Source: fuse-box/fuse-box

As reported on Gitter: https://gitter.im/fusebox-bundler/Lobby?at=5d6640cba080d70ab594e920

Using JSX inside *.js files causes fuse-box to crash with error like:

ParseError [SyntaxError]: [11:8]: Unexpected token: '<'
    at report (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:612:13)
    at parsePrimaryExpressionExtended (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:4037:15)
    at parseExpression (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:3472:18)
    at parseArguments (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:4157:25)
    at parseMemberOrUpdateExpression (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:3813:32)
    at parseExpressionOrLabelledStatement (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:2603:14)
    at parseStatement (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:2581:22)
    at parseStatementListItem (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:2531:22)
    at parseModuleItem (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:2502:22)
    at parseModuleItemList (C:\Users\dzek\Projects\react-perfect\node_modules\meriyah\dist\meriyah.umd.js:2489:27) {
  index: 236,
  line: 11,
  column: 8,
  description: "[11:8]: Unexpected token: '<'"
4.0.0 bug

Most helpful comment

Don't you worry, will get fixed today or tomorrow.

All 3 comments

Same issue for me as of last night!

Don't you worry, will get fixed today or tomorrow.

This might help

(node:62846) UnhandledPromiseRejectionWarning: Error: Debug Failure. Did not expect JsxExpression to have an Identifier in its trivia
    at addSyntheticNodes (/Users/patrick/Code/fusing-angular-2/node_modules/typescript/lib/typescript.js:121454:30)
    at createChildren (/Users/patrick/Code/fusing-angular-2/node_modules/typescript/lib/typescript.js:121443:9)
    at NodeObject.getChildren (/Users/patrick/Code/fusing-angular-2/node_modules/typescript/lib/typescript.js:121387:56)
    at Function.getCompilerChildren (/Users/patrick/Code/fusing-angular-2/node_modules/ts-morph/dist/compiler/ast/utils/ExtendedParser.js:52:21)
    at getCompilerDescendantsIterator (/Users/patrick/Code/fusing-angular-2/node_modules/ts-morph/dist/compiler/ast/common/Node.js:1553:48)
    at getCompilerDescendantsIterator.next (<anonymous>)
    at getCompilerDescendantsIterator (/Users/patrick/Code/fusing-angular-2/node_modules/ts-morph/dist/compiler/ast/common/Node.js:1555:16)
    at getCompilerDescendantsIterator.next (<anonymous>)
    at getCompilerDescendantsIterator (/Users/patrick/Code/fusing-angular-2/node_modules/ts-morph/dist/compiler/ast/common/Node.js:1555:16)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

twop picture twop  路  4Comments

calebboyd picture calebboyd  路  5Comments

ma2ciek picture ma2ciek  路  3Comments

nchanged picture nchanged  路  5Comments

tomitrescak picture tomitrescak  路  4Comments