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

demo project doesn't compile, bump target to ES2018 #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fybx
Copy link

@fybx fybx commented Jun 21, 2024

When trying to deploy the demo project the following error occurs:

> [email protected] start /media/yigid/share/shoka/repos/work/ts-pdf
> npm run build && lite-server -c ls-config.json


> [email protected] build
> npm run buildts && npm run buildru && npm run copypdfjsworker


> [email protected] buildts
> tsc && npm run copypngtotsc

src/document/entities/strings/date-string.ts:63:25 - error TS1503: Named capturing groups are only available when targeting 'ES2018' or later.

63     const result = /D:(?<Y>\d{4})(?<M>\d{2})(?<D>\d{2})(?<h>\d{2})(?<m>\d{2})(?<s>\d{2})/.exec(source);
                           ~~~

src/document/entities/strings/date-string.ts:63:36 - error TS1503: Named capturing groups are only available when targeting 'ES2018' or later.

63     const result = /D:(?<Y>\d{4})(?<M>\d{2})(?<D>\d{2})(?<h>\d{2})(?<m>\d{2})(?<s>\d{2})/.exec(source);
                                      ~~~

src/document/entities/strings/date-string.ts:63:47 - error TS1503: Named capturing groups are only available when targeting 'ES2018' or later.

63     const result = /D:(?<Y>\d{4})(?<M>\d{2})(?<D>\d{2})(?<h>\d{2})(?<m>\d{2})(?<s>\d{2})/.exec(source);
                                                 ~~~

src/document/entities/strings/date-string.ts:63:58 - error TS1503: Named capturing groups are only available when targeting 'ES2018' or later.

63     const result = /D:(?<Y>\d{4})(?<M>\d{2})(?<D>\d{2})(?<h>\d{2})(?<m>\d{2})(?<s>\d{2})/.exec(source);
                                                            ~~~

src/document/entities/strings/date-string.ts:63:69 - error TS1503: Named capturing groups are only available when targeting 'ES2018' or later.

63     const result = /D:(?<Y>\d{4})(?<M>\d{2})(?<D>\d{2})(?<h>\d{2})(?<m>\d{2})(?<s>\d{2})/.exec(source);
                                                                       ~~~

src/document/entities/strings/date-string.ts:63:80 - error TS1503: Named capturing groups are only available when targeting 'ES2018' or later.

63     const result = /D:(?<Y>\d{4})(?<M>\d{2})(?<D>\d{2})(?<h>\d{2})(?<m>\d{2})(?<s>\d{2})/.exec(source);
                                                                                  ~~~


Found 6 errors in the same file, starting at: src/document/entities/strings/date-string.ts:63

 ELIFECYCLE  Command failed with exit code 2.

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

Successfully merging this pull request may close these issues.

None yet

1 participant