-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Description
Sometimes, when using the LC command to create a question, the question is successfully generated in the folder, but the console prompts the storage database to report an error:
/Users/name/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/assert.js:52
assert(typeof value === "string", () => new internal_1.TypeAssertionError("a string", value, target));
^
TypeAssertionError: Expected value to be a string, got null
at /Users/zhangzeming/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/assert.js:52:45
at assert (/Users/zhangzeming/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/assert.js:34:43)
at assert.string (/Users/zhangzeming/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/assert.js:52:5)
at /Users/zhangzeming/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/TypeHelpers.js:157:35
at /Users/zhangzeming/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/PropertyHelpers.js:43:31
at Proxy.set (/Users/zhangzeming/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/ClassMap.js:62:21)
at Realm.Object.create (/Users/zhangzeming/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/Object.js:174:42)
at Realm.create (/Users/zhangzeming/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/Realm.js:553:50)
at file:///Users/zhangzeming/Documents/GitHub/leetcode-practice/common/utils/store/controller/question.js:27:27
at Realm.write (/Users/zhangzeming/Documents/GitHub/leetcode-practice/node_modules/.pnpm/realm@12.6.2/node_modules/realm/dist/Realm.js:788:22) {
expected: 'a string',
value: null
}

Metadata
Metadata
Assignees
Labels
No labels