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

Invalid start char error #1018

Closed
esp1 opened this issue Jun 1, 2022 · 1 comment
Closed

Invalid start char error #1018

esp1 opened this issue Jun 1, 2022 · 1 comment

Comments

@esp1
Copy link

esp1 commented Jun 1, 2022

I'm getting a build failure because of a problematic unicode character in the lower-case npm dependency which is transitively included from AWS Amplify. The issue looks similar to #427, but is showing up with the latest shadow-cljs version 2.19.0.

[:app] Build failure:
Failed to inspect file
  /Users/edwin/Projects/myproject/node_modules/lower-case/dist/index.js

it was required from
  /Users/edwin/Projects/myproject/node_modules/no-case/dist/index.js

Errors encountered while trying to parse file
  /Users/edwin/Projects/myproject/node_modules/lower-case/dist/index.js
  {:line 13, :column 13, :message "Character '̇' (U+0307) is not a valid identifier start char"}

This is the file with the offending character: https://github.com/blakeembrey/change-case/blob/040a079f007879cb0472ba4f7cc2e1d3185e90ba/packages/lower-case/src/index.ts#L18
excerpt:

const SUPPORTED_LOCALE: Record<string, Locale> = {
  tr: {
    regexp: /\u0130|\u0049|\u0049\u0307/g,
    map: {
      İ: "\u0069",
      I: "\u0131",
      İ: "\u0069",
    },
  },
@thheller
Copy link
Owner

thheller commented Jun 2, 2022

This is an error in the Closure Compiler I can do nothing about unfortunately.

See google/closure-compiler#3639

Also

@thheller thheller closed this as completed Jun 2, 2022
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

No branches or pull requests

2 participants