Duckduckgoose
Duckduckgoose

Reputation: 1

Serving NX project doesn't show changes made in lib

I'm new to nx and mono repos. We have a react, stencil.js, nx repo. Each project is under libs.

One project is the "main" application. The page itself.

Second project is the "sub" application. A widget on the page.

I'm working on the "sub" application, but then I need to serve "main" to see how the widget looks on the page.

For some reason it's not updating with the changes I make in my repo. I have tried NX reset, yarn install, and serving again.

Projects are in tsconfig.base.json without version numbers.

I guess I'm not really understanding how to tell my parents "main" component what version of "sub" it needs. Will it only be able to use it once I deploy the application and not just running it locally?

nx reset yarn install npx nx serve sub exit npx nx serve main

I would expect running sub would trigger a build of sub. Then running main after, it would use the new build of sub when it runs. Instead it has the last version of sub that I have deployed before any of my local changes were made. (Changes reflect in sub when run)

Upvotes: 0

Views: 10

Answers (0)

Related Questions