Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

po-sync: Erro ao executar o método destroy() usando lokijs #1887

Open
2 of 10 tasks
likid opened this issue Nov 20, 2023 · 1 comment
Open
2 of 10 tasks

po-sync: Erro ao executar o método destroy() usando lokijs #1887

likid opened this issue Nov 20, 2023 · 1 comment
Labels
status: awaiting author Additional information has been requested from the author status: triage Issue or pull request that need to be triaged and assigned to a reviewer

Comments

@likid
Copy link

likid commented Nov 20, 2023

Reprodução

Passos para reproduzir:

  1. Criar um app utilizando o po-sync e configurar o po-storage para usar o lokijs.
  2. Após inicializado a sincronização, executar o método destroy() para apagar todo o conteúdo.

Qual o comportamento atual?

Ocorre um erro no console
core.mjs:10614 ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'lokiMap')
TypeError: Cannot read properties of undefined (reading 'lokiMap')
at PoLokiDriver.getLokiMap (po-ui-ng-storage.mjs:188:61)
at po-ui-ng-storage.mjs:106:38
at _ZoneDelegate.invoke (zone.js:368:26)
at Object.onInvoke (core.mjs:11083:33)
at _ZoneDelegate.invoke (zone.js:367:52)
at Zone.run (zone.js:129:43)
at zone.js:1257:36
at _ZoneDelegate.invokeTask (zone.js:402:31)
at core.mjs:10757:55
at AsyncStackTaggingZoneSpec.onInvokeTask (core.mjs:10757:36)
at resolvePromise (zone.js:1193:31)
at zone.js:1264:17
at _ZoneDelegate.invokeTask (zone.js:402:31)
at core.mjs:10757:55
at AsyncStackTaggingZoneSpec.onInvokeTask (core.mjs:10757:36)
at _ZoneDelegate.invokeTask (zone.js:401:60)
at Object.onInvokeTask (core.mjs:11070:33)
at _ZoneDelegate.invokeTask (zone.js:401:60)
at Zone.runTask (zone.js:173:47)
at drainMicroTaskQueue (zone.js:581:35)

Que comportamento você esperava ver?

Execução do método sem erros como ocorre ao utilizar outros meios de armazenamento que não sejam o lokijs

Ambiente

  • PO UI: 16.7.0
  • Angular: 16.0.0
  • Browser(s):
    • Chrome
    • Firefox
    • Edge
    • Safari
    • IE 11
    • Outros
  • Operating System:
    • Windows
    • macOS
    • Ubuntu
    • Outros

Observações

Aparentemente o problema está na função getLokiMap() no fonte po-loki-driver.ts

@likid likid added the bug Something isn't working label Nov 20, 2023
@anliben
Copy link
Contributor

anliben commented Nov 21, 2023

Boa Tarde @likid, tudo bem?

Para podermos apoiá-lo precisaremos de mais detalhes para entender a situação

Detalhe passo a passo a reprodução da ocorrência, inclua evidências utilizando imagens, vídeos ou gifs:

  • Passo 1...*
  • Passo 2...
  • Detalhe o comportamento atual:
  • Detalhe o comportamento que você espera ver:

Informe a versão dos ambientes:

  • PO UI: Ex. v15.8.0
  • Angular: Ex. 15
  • Node: Ex. 15

Informe o Browser:

  • Chrome
  • Firefox
  • Edge
  • Safari
  • IE 11
  • Outros

Informe e o Sistema Operacional:

  • Windows
  • macOS
  • Ubuntu
  • Outros

Aguardamos seu retorno!

@anliben anliben added the status: awaiting author Additional information has been requested from the author label Nov 22, 2023
@jkozima jkozima removed the bug Something isn't working label Nov 22, 2023
@anliben anliben added the status: triage Issue or pull request that need to be triaged and assigned to a reviewer label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting author Additional information has been requested from the author status: triage Issue or pull request that need to be triaged and assigned to a reviewer
Projects
None yet
Development

No branches or pull requests

3 participants