Unable to build example application

Open
#50 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, react, webpack

Research direction

Reproduce the build in examples/billpay-react and inspect the reported dependency files under bower_components, especially the modules failing on Region, Boolean, Ordering, and RowList. Compare the example's build setup with the compiler and dependency versions; done means the example builds without the listed parse errors.

Written by the indexing model from the issue text.

Description

  • Building project in /Users/jamesagada/Downloads/purescript-presto-master/examples/billpay-react
    Error 1 of 13:

    at bower_components/purescript-st/src/Control/Monad/ST.purs:3:44 - 3:50 (line 3, column 44 - line 3, column 50)

    Unable to parse module:
    Unexpected token 'Region'

    See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
    or to contribute content related to this error.

Error 2 of 13:

at bower_components/purescript-st/src/Control/Monad/ST/Global.purs:8:35 - 8:41 (line 8, column 35 - line 8, column 41)

Unable to parse module:
Unexpected token 'Region'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 3 of 13:

at bower_components/purescript-typelevel-prelude/src/Type/Prelude.purs:10:32 - 10:39 (line 10, column 32 - line 10, column 39)

Unable to parse module:
Unexpected token 'Boolean'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 4 of 13:

at bower_components/purescript-typelevel-prelude/src/Type/Row.purs:16:27 - 16:34 (line 16, column 27 - line 16, column 34)

Unable to parse module:
Unexpected token 'RowList'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 5 of 13:

at bower_components/purescript-typelevel-prelude/src/Type/Data/Ordering.purs:15:28 - 15:36 (line 15, column 28 - line 15, column 36)

Unable to parse module:
Unexpected token 'Ordering'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 6 of 13:

at bower_components/purescript-typelevel-prelude/src/Type/Data/Boolean.purs:2:10 - 2:17 (line 2, column 10 - line 2, column 17)

Unable to parse module:
Unexpected token 'Boolean'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 7 of 13:

at bower_components/purescript-typelevel-prelude/src/Type/Data/Symbol.purs:13:45 - 13:53 (line 13, column 45 - line 13, column 53)

Unable to parse module:
Unexpected token 'Ordering'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 8 of 13:

at bower_components/purescript-typelevel-prelude/src/Type/Row/Homogeneous.purs:7:51 - 7:58 (line 7, column 51 - line 7, column 58)

Unable to parse module:
Unexpected token 'RowList'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 9 of 13:

at bower_components/purescript-arrays/src/Data/Array/ST.purs:34:35 - 34:41 (line 34, column 35 - line 34, column 41)

Unable to parse module:
Unexpected token 'Region'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 10 of 13:

at bower_components/purescript-foreign-object/src/Foreign/Object/ST.purs:14:35 - 14:41 (line 14, column 35 - line 14, column 41)

Unable to parse module:
Unexpected token 'Region'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 11 of 13:

at bower_components/purescript-record/src/Record/ST.purs:12:35 - 12:41 (line 12, column 35 - line 12, column 41)

Unable to parse module:
Unexpected token 'Region'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 12 of 13:

at bower_components/purescript-record/src/Record.purs:22:118 - 22:125 (line 22, column 118 - line 22, column 125)

Unable to parse module:
Unexpected token 'RowList'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

Error 13 of 13:

at bower_components/purescript-prelude/src/Type/Data/RowList.purs:3:27 - 3:34 (line 3, column 27 - line 3, column 34)

Unable to parse module:
Unexpected token 'RowList'

See https://github.com/purescript/documentation/blob/master/errors/ErrorParsingModule.md for more information,
or to contribute content related to this error.

  • ERROR: Subcommand terminated with exit code 1
    (node:78197) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
    (Use node --trace-deprecation ... to show where the warning was created)
    Project is running at http://localhost:8080/
    webpack output is served from /dist
    Hash: d515dab77a89f78536c3
    Version: webpack 3.12.0
    Time: 1941ms
    Asset Size Chunks Chunk Names
    c33873b0cdaf3192972c7317a5ccfba2.svg 2.61 kB [emitted]
    7ed088d19c0cee2645668e6a1a9580df.png 259 bytes [emitted]
    74268dbabe00c074117403043f3c6a2d.png 1.25 kB [emitted]
    b898f538b2b9d7db625a5b34dd21d464.png 2.69 kB [emitted]
    0f537fb343a6190145eba72e82b95665.png 833 bytes [emitted]
    b650a8c9c13a0a2dc96fea8a185d50d2.png 1.73 kB [emitted]
    3248cbc08a43deb1f3759136f6773f71.png 1.39 kB [emitted]
    cfa14fafacfa4031151a75bb13b42d5c.png 1.8 kB [emitted]
    ba2a215b4c78968b29b569ffb56ab3fa.png 1.85 kB [emitted]
    d5ee6f5aec2a980cc92f87929d2f67b1.png 2.22 kB [emitted]
    78af5b8c5f0ddebc0ebfa51a8cf58acf.png 1.98 kB [emitted]
    4ed9021ece89a79de658fb1219b16e65.png 1.64 kB [emitted]
    4142f189f86f618d31b9376c7e42a13c.png 1.51 kB [emitted]
    index_bundle.js 1.55 MB 0 [emitted] [big] main
    index_bundle.js.map 1.82 MB 0 [emitted] main
    [1] ./node_modules/react/index.js 190 bytes {0} [built]
    [19] multi (webpack)-dev-server/client?http://localhost:8080 ./index.js 40 bytes {0} [built]
    [20] (webpack)-dev-server/client?http://localhost:8080 7.93 kB {0} [built]
    [21] ./node_modules/url/url.js 23.5 kB {0} [built]
    [37] ./node_modules/strip-ansi/index.js 161 bytes {0} [built]
    [39] ./node_modules/loglevel/lib/loglevel.js 9.56 kB {0} [built]
    [40] (webpack)-dev-server/client/socket.js 1.08 kB {0} [built]
    [42] (webpack)-dev-server/client/overlay.js 3.67 kB {0} [built]
    [48] (webpack)/hot nonrecursive ^./log$ 170 bytes {0} [built]
    [50] (webpack)/hot/emitter.js 77 bytes {0} [built]
    [52] ./index.js 2.31 kB {0} [built]
    [53] ./views/SplashScreen.js 3.05 kB {0} [built]
    [60] ./views/ChooseOperator.js 4.86 kB {0} [built]
    [70] ./views/AskMobileNumber.js 5.49 kB {0} [built]
    [71] ./views/AskAmount.js 5.38 kB {0} [built]
    • 68 hidden modules
Dominant language
PureScript
Stars
243
Forks
46
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from juspay/purescript-presto

All issues in juspay/purescript-presto

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.