Error message regarding plugin in a failed deployment

I get an error when deploying. It says:

Outdated plugins
1:41:37 PM: - @netlify/plugin-nextjs@3.9.2: latest version is 4.31.0
1:41:37 PM: To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (Netlify)

However I can’t find any plugin with that name in the Netlify directory. Could you please advise me how to find this plugin?

hi @alexennder

welcome to our forums! You’re most likely hard coding this plugin in your package.json. Please remove any references from it in your package.json and run the build again, clearing the cache before:

Hope this helps!

I have removed all references but now another error message appears:

6:28:07 PM: Plugin “@netlify/plugin-nextjs” failed
6:28:07 PM: ────────────────────────────────────────────────────────────────
6:28:07 PM: ​
6:28:07 PM: Error message
6:28:07 PM: Error: Error loading your next.config.js.
6:28:07 PM: The “target” property is no longer supported in next.config.js.
6:28:07 PM: See more info here deprecated-target-config | Next.js

You should remove the "target" property from your next.config.js file and update your code accordingly that are needed in the latest version of Next.js.

I have no target property in my next.config.js.