KurtzL / nestjs-temporal

Temporal plugin for nestjs framework
MIT License
107 stars 22 forks source link

Cannot read properties of undefined (reading 'install') #7

Open fjur opened 2 years ago

fjur commented 2 years ago

Running into the following error when trying to run your project, installed via npm version 0.0.5 https://www.npmjs.com/package/nestjs-temporal

It seems that it thinks the core package from @temporal/worker is undefined

/node_modules/nestjs-temporal/dist/temporal.explorer.js:55
                yield worker_1.Core.install(coreConfig);
                                    ^
TypeError: Cannot read properties of undefined (reading 'install')
    at TemporalExplorer.<anonymous> (/node_modules/nestjs-temporal/dist/temporal.explorer.js:55:37)
    at Generator.next (<anonymous>)
    at fulfilled (/node_modules/nestjs-temporal/dist/temporal.explorer.js:14:58)

Also, how does this package work, does it boot up a worker service that listens on the same process as the controllers? Trying to implement this in a monolith where there are two separate apps, one that deals with API endpoints (controller), and the worker that solely runs workflows and activities

yuvall-cyera commented 2 years ago

I have the same problem

yuvall-cyera commented 2 years ago

The problem was that this repository relied on @temporalio/worker version 0.18.0, while I installed the latest one...