Skip to content

Commit 4fb99ed

Browse files
Merge pull request #351 from contentstack/fix/dx-10153-global-field-reference-warning
fix(import): clarify global field reference-field warning message
2 parents d1aaa7e + a816e31 commit 4fb99ed

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/contentstack-import/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-cm-import",
33
"description": "Contentstack CLI plugin to import content into stack",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli-plugins/issues",
77
"dependencies": {

‎packages/contentstack-import/src/utils/content-type-helper.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const removeReferenceFields = async function (
132132
} catch (error) {
133133
// Else warn and modify the schema object.
134134
isContentTypeError = true;
135-
log.warn(`Content type ${schema[i].reference_to[j]} does not exist. Removing the field from schema...`);
135+
log.warn(`Content type ${schema[i].reference_to[j]} is not imported yet; its reference will be restored once it is imported.`);
136136
}
137137
}
138138

0 commit comments

Comments
 (0)