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

Problem with lodash and persisting workflow state #205

Closed
dlebee opened this issue May 23, 2023 · 0 comments
Closed

Problem with lodash and persisting workflow state #205

dlebee opened this issue May 23, 2023 · 0 comments

Comments

@dlebee
Copy link

dlebee commented May 23, 2023

I get this error from the persistence module.

    at MongodbPersistence.saveWorkflowState (C:\_dev\experiment\substrate-relayer-tsoa\node_modules\@node-ts\bus-mongodb\dist\mongodb-persistence.js:76:60)
    at C:\_dev\experiment\substrate-relayer-tsoa\node_modules\@node-ts\bus-core\dist\workflow\registry\workflow-registry.js:152:44
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) undefined rejected {
  status: 'rejected',
  reason: TypeError: (0 , lodash_mapkeys_1.default) is not a function
      at MongodbPersistence.saveWorkflowState (C:\_dev\experiment\substrate-relayer-tsoa\node_modules\@node-ts\bus-mongodb\dist\mongodb-persistence.js:76:60)
      at C:\_dev\experiment\substrate-relayer-tsoa\node_modules\@node-ts\bus-core\dist\workflow\registry\workflow-registry.js:152:44
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
}

I took a look at the compiled mongo-persistence lodash_mapkeys_1.default is undefined but if I remove .default its defined and the code works.

is it a configuration on my side or is it the compiled code that has an issue?

thank you,
David L

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant