Przeglądaj źródła

improve proxy property warning

Evan You 10 lat temu
rodzic
commit
a326c91056
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/core/instance/proxy.js

+ 2 - 1
src/core/instance/proxy.js

@@ -21,7 +21,8 @@ if (process.env.NODE_ENV !== 'production') {
       const isAllowedGlobal = allowedGlobals(key)
       if (!has && !isAllowedGlobal) {
         warn(
-          `Trying to access non-existent property "${key}" while rendering.`,
+          `Trying to access non-existent property "${key}" while rendering. ` +
+          `Make sure to declare reactive data properties in the data option.`,
           target
         )
       }