I’m currently working on building a community node.
When I run @n8n/scan-community-package it failes on:
8:18 error Require of 'crypto' is not allowed n8n-community-packages/no-restricted-imports
9:37 error Require of 'form-data' is not allowed n8n-community-packages/no-restricted-imports
Which I find a bit strange, why isn’t is supported to use these?
It’s not part of the docs, and also the node by itself works great when run locally.
Am i missing something?
What is the error message (if any)?
8:18 error Require of 'crypto' is not allowed n8n-community-packages/no-restricted-imports
9:37 error Require of 'form-data' is not allowed n8n-community-packages/no-restricted-imports
It does’t really help me,
My problem is not using these modules in the community node I created, I want to submit it for verification to n8n.
One of the requirements is passing the check by @n8n/scan-community-package
Hi from n8n. Just for verification, as of now, they still don’t allow community custom nodes that have dependencies. Only those with a pure API can be approved."
These are not external dependencies, form-data, crypto, and buffer is built into node. I have to send form-data requests, read buffers. If you have an alternative way to do it, I’m happy to implement, but my API requires these basic functionalities.
For your case, have you ever tried taking the source code from a community node that’s similar to your case? I use that method to adjust my own custom nodes. The form data you’re referring to should be manageable using the documentation here:
I’m having the same issue with ‘form-data’. Is the verification only for publishing custom nodes for n8n Cloud? form-data is used by a lot of nodes that are already available in n8n.