frappe / books

Free Accounting Software
https://frappe.io/books
GNU Affero General Public License v3.0
2.68k stars 614 forks source link

this error apper when i click on the database to open it #897

Open momaresh opened 1 month ago

momaresh commented 1 month ago

Description

Add some description...

Steps to Reproduce

Add steps to reproduce the error...

Info

Error: TypeError: Cannot read properties of undefined (reading 'models')

Stack:

TypeError: Cannot read properties of undefined (reading 'models')
    at SetupWizard._setDefaults (http://127.0.0.1:3000/@fs/C:/xampp/htdocs/books-master/fyo/model/doc.ts:268:40)
    at new _Doc (http://127.0.0.1:3000/@fs/C:/xampp/htdocs/books-master/fyo/model/doc.ts:41:10)
    at new SetupWizard (http://127.0.0.1:3000/@fs/C:/xampp/htdocs/books-master/models/baseModels/SetupWizard/SetupWizard.ts:54:5)
    at DocHandler.getNewDoc (http://127.0.0.1:3000/@fs/C:/xampp/htdocs/books-master/fyo/core/docHandler.ts:69:17)
    at getSetupWizardDoc (http://127.0.0.1:3000/utils/misc.ts:48:18)
    at Proxy.mounted (http://127.0.0.1:3000/pages/SetupWizard/SetupWizard.vue:65:22)
    at http://127.0.0.1:3000/@fs/C:/xampp/htdocs/books-master/node_modules/.vite/deps/chunk-HGK7C4TO.js?v=df143dd5:4260:88
    at callWithErrorHandling (http://127.0.0.1:3000/@fs/C:/xampp/htdocs/books-master/node_modules/.vite/deps/chunk-HGK7C4TO.js?v=df143dd5:1591:19)
    at callWithAsyncErrorHandling (http://127.0.0.1:3000/@fs/C:/xampp/htdocs/books-master/node_modules/.vite/deps/chunk-HGK7C4TO.js?v=df143dd5:1598:17)
    at hook.__weh.hook.__weh (http://127.0.0.1:3000/@fs/C:/xampp/htdocs/books-master/node_modules/.vite/deps/chunk-HGK7C4TO.js?v=df143dd5:4240:19)

Version: 0.21.2 Platform: win32 Path: / Language: English