Dva.js introduces model, error reporting model.namespace should be defined?

I read the source code and said that this error will be reported when the model.namespace attribute is empty
but my namespace is defined. I don"t know why I reported this error.

clipboard.png

clipboard.png

model

clipboard.png

...........................................

clipboard.png

just found that, require (". / models/app") reported that model.namespace was not defined
added default (require (". / models/app") .default) and then mistakenly reported that the naming was not unique

dizzy.

Apr.07,2021

because the model
introduced in homepage and the model introduced in 3.model are the same
, the same model


    namespace  is introduced repeatedly, instead of using the word  app . 

Menu