You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there's a validation issue on a migration that is scheduled to run. The according validation errors should be shown, example:
Actual Behavior
Instead, a misleading, incorrect error is showing up instead:
Error: ENOENT: no such file or directory, open 'file:///Users/assisrmatheus/dev/perimetre/optrust-app/contentful/migrations/2024-07-11-09-24_blockCarouselItemLabel.js'
at Object.readFileSync (node:fs:453:20)
at renderStepsErrors (/Users/assisrmatheus/dev/perimetre/optrust-app/node_modules/contentful-migration/src/bin/lib/steps-errors.ts:37:29)
at run (/Users/assisrmatheus/dev/perimetre/optrust-app/node_modules/contentful-migration/src/bin/cli.ts:153:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at migrate (/Users/assisrmatheus/dev/perimetre/optrust-app/contentful/migrate.ts:97:7) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'file:///Users/assisrmatheus/dev/perimetre/optrust-app/contentful/migrations/2024-07-11-09-24_blockCarouselItemLabel.js'
}
I am not sure that this is mac only, but since it's the current OS I'm using. Might as well be the case. But can't discard it's also not happening on other OSs as well
Expected Behavior
If there's a validation issue on a migration that is scheduled to run. The according validation errors should be shown, example:
Actual Behavior
Instead, a misleading, incorrect error is showing up instead:
I am not sure that this is mac only, but since it's the current OS I'm using. Might as well be the case. But can't discard it's also not happening on other OSs as well
This is how migrations are being ran:
Possible Solution
The fix for the CLI is on pr #1333.
As a user, you can edit the file at
/node_modules/contentful-migration/built/bin/lib/steps-errors.js
and add the following code:Steps to Reproduce
Environment
v20.11.1
- Using ES Modules10.2.4
Darwin Matheuss-MBP 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64
4.20.2
The text was updated successfully, but these errors were encountered: