PDA

View Full Version : Can't use ExtReact in a Lerna monorepo with yarn workspaces



eucaos
13 Jun 2019, 12:11 AM
I created a repository with the exact problem we have in context of using lerna and yarn workspaces here:
https://github.com/eucaos/ext-monorepo
Inside the repository I just copied an ext boilerplate example from here https://github.com/sencha/ext-react/tree/ext-react-6.7.x/packages/ext-react-modern-typescript-boilerplate
This is the error we get:

https://user-images.githubusercontent.com/6533163/58808081-f5f49380-8621-11e9-8f1c-cad539ec6cfb.png
This is a debug view

https://user-images.githubusercontent.com/6533163/58808781-5b954f80-8623-11e9-835c-d501aaf7e024.png

From what I see the extPath, determined by process.cwd() is not good.
It wants to find node_modules in the package folder, but it's actually at the root of the ext-monorepo.
This works fine with "ext-reactor" as there we can specify {sdk: "../../node_modules/@sencha/ext"}
I also logged the issue here: https://github.com/sencha/ext-react/issues/85#issuecomment-498273406

Forum_Adm
10 Jul 2019, 11:19 AM
Thank you so much for your post. I apologize for the delay. I have shared this with the support staff and someone will get back to provide assistance as soon as possible. Your patience is greatly appreciated!

Kind Regards,

Michele

rakumar
22 Jul 2019, 9:41 AM
Hello,

This has been reported to an Architect for review and will keep you posted as soon as there is an update.

Regards,
Kumar
Sencha Support.