After upgrading to @forge/cli v1.3.3, I started seeing the following error on a TypeScript project:
$ ./node_modules/.bin/forge lint --verbose
The linter checks the app code for known errors. Warnings are issues you should fix, but they won't stop the app code from building.
Press Ctrl+C to cancel.
Error: Cannot read property 'type' of undefined
TypeError: Cannot read property 'type' of undefined
at ExternalApiCallVisitor.visit (/<REPOSITORY_PATH>/associate-admin/node_modules/@forge/cli/node_modules/@forge/lint/out/lint/linters/permission-linter/visitors/external-fetch-call-visitor.js:22:38)
Is there anyone seeing the same symptom?
It seems related to the Fetch API.
Hi @i05, we are working on a fix for the issue you are facing. In the meantime, you should still be able to deploy using the --no-verify flag with the deploy command.
I’m not too sure about this. The sure thing is the error has been solved with 1.3.4. So what I can say is the cause can be something fixed between 1.3.3 and 1.3.4.