Hello everyone,
I am trying to create a node using the Node Dev CLI method for internal testing, but I am not able to import some modules such as lossless-json.
Anybody has faced this issue?
Thank you very much
Hey @adricampi !
Are you adding the library to package.json? Here’s a post that might be helpful: Unable to install n8n-nodes-module
I will try that just know, and will answer you asap.
Thanks for the tip.
That is what I want to do, but when I develop a node some of the dependencies/libraries I use such as
lossless-json doesn’t work. But in the folder where the project is there is no package.json document.
Any ideas?
lossless-json it’s already a dependency in n8n. You should not have issues using it within a node.
"dist/nodes/Switch/Switch.node.js",
"dist/nodes/SyncroMSP/SyncroMsp.node.js",
"dist/nodes/Taiga/Taiga.node.js",
"dist/nodes/Taiga/TaigaTrigger.node.js",
"dist/nodes/Tapfiliate/Tapfiliate.node.js",
"dist/nodes/Telegram/Telegram.node.js",
"dist/nodes/Telegram/TelegramTrigger.node.js",
"dist/nodes/TheHive/TheHive.node.js",
"dist/nodes/TheHive/TheHiveTrigger.node.js",
"dist/nodes/TimescaleDb/TimescaleDb.node.js",
"dist/nodes/Todoist/Todoist.node.js",
"dist/nodes/Toggl/TogglTrigger.node.js",
"dist/nodes/TravisCi/TravisCi.node.js",
"dist/nodes/Trello/Trello.node.js",
"dist/nodes/Trello/TrelloTrigger.node.js",
"dist/nodes/Twake/Twake.node.js",
"dist/nodes/Twilio/Twilio.node.js",
"dist/nodes/Twist/Twist.node.js",
"dist/nodes/Twitter/Twitter.node.js",
"dist/nodes/Typeform/TypeformTrigger.node.js",
"dist/nodes/UnleashedSoftware/UnleashedSoftware.node.js",