I’ve had a flow working for over a year and yesterday it reported the following error (no changes in the year), and then I ran it manually but still an error. Can someone help fix it? Thank you.
ERROR:
Error: Error: Compilation Error Error: Importing files outside the step folder is not allowed (index.ts:1:27)
at exports.code (/root/codes/PhAopXAaLnuWFP6K3Mwge/step_14/index.js:3:13)
at process. ([eval]:21:34)
at Object.onceWrapper (node:events:623:26)
at process.emit (node:events:508:28)
at emit (node:internal/child_process:948:14)
at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
at Jg (/root/common/main.js:23:15)
at ChildProcess. (/root/common/main.js:19:12337)
at ChildProcess.emit (node:events:508:28)
at emit (node:internal/child_process:948:14)
at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
MANUAL RUN ERROR:
Error: Error: Compilation Error Error: Importing files outside the step folder is not allowed (index.ts:1:27)
at exports.code (/root/codes/gwh4pSHPIoIXnlPGPJKPH/step_14/index.js:3:13)
at process. ([eval]:21:34)
at Object.onceWrapper (node:events:623:26)
at process.emit (node:events:508:28)
at emit (node:internal/child_process:948:14)
at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
at Jg (/root/common/main.js:23:15)
at ChildProcess. (/root/common/main.js:19:12337)
at ChildProcess.emit (node:events:508:28)
at emit (node:internal/child_process:948:14)
at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
Hey @BharatKaravadra ,
Could you share the flow link with us? Also, in which step/piece is this error occurring?
@kishanprmr ,
It’s here: Activepieces
and it’s in the Code piece: 13. Code 1
@kishanprmr it’s been a week since I posted what you asked for. It’s not practical to wait this long to get support. Can you please help as soon as possible?
I have the same problem with my flows for a long time already, I hoped it would get fixed eventually.
Code piece dependencies:
The error was something about “Importing files outside the step folder is not allowed” too, and now it’s this:
Error: Error: Compilation Error Error: Failed to compile code step
at exports.code (/root/codes/aQPV3G0ecEnEgkJkgN2yo/step_6/index.js:3:13)
at process.<anonymous> ([eval]:21:34)
at Object.onceWrapper (node:events:623:26)
at process.emit (node:events:508:28)
at emit (node:internal/child_process:948:14)
at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
at c_ (/root/common/main.js:90:15)
at ChildProcess.<anonymous> (/root/common/main.js:86:1245)
at ChildProcess.emit (node:events:508:28)
at emit (node:internal/child_process:948:14)
at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
Same here since ~Sep 23 (our last good run was Aug 19, no code changes). Also on cloud.
What we’ve narrowed down: it’s package-specific. Steps using @aws-sdk/client-s3, fast-xml-parser and archiver fail with “Importing files outside the step folder is not allowed”. Steps using axios, luxon and moment-timezone still compile and run. Reproduces on a fresh test run, so it’s not a stale cache. From the stack traces, dependencies are now bundled into the step’s index.js, so it looks like the new bundler rejects packages whose files resolve outside the step folder.
This is blocking a production pipeline for us. @kishanprmr, happy to share flow links privately.
@BharatKaravadra @leveque-j
Hello,
We’ve identified the issue . it was introduced in a security change to prevent importing suspicious urls, but unintentionally it also made it prevent “node:x” imports
A fix will be deployed today