Trying to create a community node, I can't use crypto and form-data?

Describe the problem/error/question

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

Read here for further information of your problem

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

I’m facing the same problem, how do I pass this check?

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."

You can join the “Node Creators” thread on Discord. I hope this answer helped.

1 Like

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:

1 Like

Alright, thank you for the help, if anyone is in the same position, here is what helped:

Hi,
Could you explain how you managed to send binary data using FormData and still pass the verification process?
Thanks!

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.