Akryum / Akryum/meteor-vue2-example
Error with 'setDefault' in app.vue
- Lenguaje dominante
- Vue
- Estrellas
- 43
- Forks
- 22
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I cloned the example and followed all the add, remove and npm instructions mentioned in the Readme.md. On first run it throws the following error:
```
Exited with code: 1
.....meteor\packages\meteor-tool\1.4.3_2\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:280
throw(ex);
TypeError: Cannot read property 'setDefault' of undefined
at imports/ui/App.vue:27:1
```
Not sure what's causing it. Perhaps something changed in the recent Session package?
I changed the faulting line from to: ` Session.setDefault("counter", 0) ` to: ` Session.set("counter", 0) ` which made the app run fine.
**UPDATE**
I changed it back to the orginal ` Session.setDefault("counter", 0) `, but I moved it into the 'beforeCreate' lifecycle hook, and that seems to work fine.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.