Skip to content

tsx-seconds-elapse example doesn't compiles #936

@beenotung

Description

@beenotung

Code to reproduce the issue:

git clone https://github.com/cyclejs/cyclejs
cd cyclejs/examples/intermediate/tsx-seconds-elapsed
npm start

Expected behavior:
It should compile the code, without error.

Actual behavior:
The compile failed with below error:

...
mkdirp dist && tsc

node_modules/@types/react/index.d.ts(77,26): error TS1005: ',' expected.
node_modules/@types/react/index.d.ts(77,28): error TS1005: '>' expected.
node_modules/@types/react/index.d.ts(77,30): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(77,32): error TS1109: Expression expected.
node_modules/@types/react/index.d.ts(77,52): error TS1005: '(' expected.
...

Workarond:
Although the error is caused by mis-configuration of the build process for typescript, the error can be ignored to continue the build, and the built code works well.
Therefore, in the npm script, if I add || true after tsc, it will allow browserify to continue the build process.

Versions of packages used:
master branch (15.4.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions