Open MarkLyck opened 3 years ago
Hmmm I think I figured out what's causing this bug to happen @andoshin11.
It's related to adding @ant-design/charts
npm package to my code.
even though this package has Typescript and no typescript errors are thrown when running it in the browser, or running yarn tsc
as soon as I added this chart library to my other project, your typescript-error-reporter-action
is now failing with this same error on both of my projects.
I have been forced to remove it, which is sad cause it is one of my favorite CI actions.
any idea what's going on with this error?
Found the piece of code that's causing issues in your dist bundle. But I couldn't find the original source of the problem :(
Try this until #22 is merged?
- uses: ypresto/typescript-error-reporter-action@6cb6a970f0783c19f55fb83079f7846a583c7543
@ypresto
Getting the following error when running your fork:
Run ypresto/typescript-error-reporter-action@6cb6a970f0783c19f55fb83079f7846a583c7543
Loaded typescript@4.2.3 from CDN.
Error: ReferenceError: hNd is not defined
My project builds just fine, and running yarn tsc
finds no errors locally.
I don't have anything called "hNd" in my code, so not sure where this is coming from.
This looks like a dup of https://github.com/andoshin11/typescript-error-reporter-action/issues/13
@Gozala 's fork fixed this issue for me:
- name: Typecheck
uses: gozala/typescript-error-reporter-action@v1.0.5
I had the same issue and still can't seem to get it working. I tried #22 and #13
Worth noting:
target: ['ES2021']
in tsconfig
npx tsc --noEmit
instead of this custom action
I'm able to use this
typescript-error-reporter-action
fine on one of my create-react-app projects.I just added the exact same workflow file to another project of mine based on next.js and the next.js one gets the following error:
My workflow file:
My project builds fine, and running
yarn tsc
finds no errors.My Typescript version on both projects are 4.1.5 (exact)