I am trying to build an existing community node (n8n-nodes-document-generator) but I get this error on npm run lint:
1:1 error Definition for rule ‘n8n-nodes-base/node-param-option-name-wrong-for-get-all’ was not found n8n-nodes-base/node-param-option-name-wrong-for-get-all
Could you confirm what this error means and how can I fix it?
Hi @Miquel_Colomer, I am not super familiar with our linting logic unfortunately. Have you installed the latest dependencies? If not, perhaps @ivov can help with this?
Now build process is working fine and it generates dist folder with right files.
But lint error always appears when doing
npm run lint
Not sure if I am missing something in the parameters of the node definition.
Yes, that would be useful to clear this error because I am not sure what it’s exactly checking (it seems related with parameter naming on Get All methods, but I have no Get All operation).
Can you please check in n8n-nodes-document-generator/node_modules/eslint-plugin-n8n-nodes-base/package.json that version is the latest 1.9.3? If it is not, please remove n8n-nodes-document-generator/node_modules/eslint-plugin-n8n-nodes-base and package-lock.json and reinstall to ensure you receive the latest version of the linter. Then open Command Pallette and select Restart ESLint server.
For context, we recently switched from Get All to Get Many, and one existing rule had to be renamed to reflect this. Apologies for the inconvenience.
I have checked it and package version is 1.9.3 in eslint-plugin-n8n-nodes-base under node_modules.
And linting throws same error:
1:1 error Definition for rule ‘n8n-nodes-base/node-param-option-name-wrong-for-get-all’ was not found n8n-nodes-base/node-param-option-name-wrong-for-get-all
Your repo has cleared out the .eslintrc.js config. Compare the new version to the original. Restoring the original config allows the command to succeed. Where possible, please avoid editing this config.