Is it possible to get a monorepo of Twilio Flex plugins to work? #601
Unanswered
leo-petrucci
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're planning a fairly major rework of our Twilio interface and we'd like to make it as easy as possible to develop plugins.
Up until now we've had a project per plugin, but this causes a huge amount of duplicate code and wasted time:
I was hoping to be able to solve this by using a monorepo approach but I haven't been able to get anywhere.
I've tried with both pnpm and Yarn, but both error out. I've attached reproductions for both cases. Please let me know if there's a way to fix this, it would make my life 100x easier!
PNPM
Reproduction
I tried with
pnpm
first as it has the strongest monorepo DX out of the big three. Everything seems fine in VScode until it's time to start the plugin.Install:
Then run command:
Returns:
Yarn
Reproduction
With
yarn
it's quite similar. Except VSCode will complain about dependencies not found.Install with
yarn
Open
plugins/team-filters/src/SamplePlugin.tsx
, dependencies will show as not found.Then run command:
Returns:
Beta Was this translation helpful? Give feedback.
All reactions