Issue with Forge Lint

Hello Everyone,

I’ve been running into a few warnings when I try to run forge lint. No issues get reported but its preventing me from deploying my development app with an error which I am assuming is due to it not being picked up by forge lint.

Below is the following warnings:

Warning: Could not perform some linting actions for DeprecatedCspPermissionsManifestLinter due to unhandled error "modules[moduleKey]?.forEach is not a function".

Warning: Could not perform some linting actions for RemoteComputeManifestLinter due to unhandled error "modules[moduleKey]?.forEach is not a function".

Warning: Could not perform some linting actions for FullManifestLinter due to unhandled error "modules[moduleKey]?.forEach is not a function".

Currently using CustomUI along with Atlaskit on React 18/Major Version 10.

Hi @ConradK - can you please confirm what version of the CLI you are using (running forge --version will tell you)? Has this problem only recently started happening where it was working successfully before? Have you made any code changes to your manifest that may have caused this regression? Do you get this behaviour only for one specific app, or for any app you try to create?

If you are completely blocked and need to deploy your app, you can trying skipping the linting step by running forge deploy --no-verify.

1 Like

Hi @HeyJoe , I found the solution to be just some module Items missing some things were required (specifically the resolver). It is odd though that forge lint didn’t flag it as an error as it will let me forge deploy without the need to bypass the verification and would error on the deploy. This seems like a bug with forge lint.

I am currently on CLI version 10.5.0