Pinelab-studio / pinelab-vendure-plugins

Monorepo for different Vendure plugins developed by Pinelab
93 stars 40 forks source link

Error: Cannot find module 'typeorm' #403

Open yasserlens opened 1 month ago

yasserlens commented 1 month ago

Which plugin/repository is the issue about? vendure-plugin-google-cloud-tasks - but it could be affecting other plugins that I don't use.

Describe the bug After upgrading to the latest vendure version 2.2.0, I'm getting the following error at startup: Error: Cannot find module 'typeorm' Require stack:

To Reproduce Upgrade to Vendure to v2.2.0, run the app

Expected behavior No errors at startup..

Temporary Solution install typeorm in your vendure project's root as a temp solution until typeorm is included in cloud-tasks / other plugins:

npm install typeorm

Environment

Additional context I don't see typeorm included in the plugins - I assume it should be inherited from Vendure but I'm not sure why it's not anymore in v2.2.

martijnvdbrug commented 2 weeks ago

Hi, thanks for your issue report.

Strange indeed, I do see that the typeorm package is still part of vendure/core, so that is the one that we should be using. Installing another version of TypeOrm sounds fishy, make sure you have the same version as v2.2!

That said, we still have to upgrade all plugins to work with v2.2, so I hope this will be tackled when that is done. Expect it somewhere in the coming 3 weeks

yasserlens commented 2 weeks ago

Thanks Martijn! Looking forward to seeing the update :)