Replies: 2 comments 4 replies
-
Hi, First of all, I think you should look again at this repository, I made some modifications not a long time ago. In its actual state, changes in the UI packages are picked up by remix, same is for editing tailwind classes in the UI, they are reflected in the remix app directly in dev mode. For your example and generally, you should run your commands from the root of the repository. To The tailwind.config.js
For tailwind, you will also have to look at this repo example to see how the tailwind watch commands are run and picking up Your remix config fileThen for your remix app you should have the /** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
serverDependenciesToBundle: [
"@remix-gospel-stack/internal-nobuild",
"@remix-gospel-stack/database",
"@remix-gospel-stack/business",
"@remix-gospel-stack/ui",
],
// This watchPaths lets remix reload when these packages change
watchPaths: async () => {
return [
"../../packages/ui/src/**/*",
"../../packages/business/src/**/*",
"../../packages/database/src/**/*",
"../../packages/internal-nobuild/src/**/*",
];
},
future: {
v2_routeConvention: true,
v2_normalizeFormMethod: true,
v2_meta: true,
v2_errorBoundary: true,
},
}; Finally, look at your remix tsconfig file and check if your |
Beta Was this translation helpful? Give feedback.
-
Thank you, I totally forgot about the config files for a new app in the mono repro. It does not pick up my changes from the ui component in the package @core/ui, even on a stop and start of the remix dev server it fails to pick to changes up. Im using the latest remix v1.16 |
Beta Was this translation helpful? Give feedback.
-
For example I have
This holds all components for example a Navbar component is exported from this package.
I then install this package into a remix application and use it as is like:
This works fine as is BUT:
Everytime I make modification to the package its changes do not reflect in my application for example inside apps/myremixapp i run:
Is there a correct way of making the Navbar component changes I makde to from @core/ui appear in realtime with remix?
So i can just develop the component inside @core/ui as if it was inside my remix app.
I could only find the
command but this seems to install the package and does not reflect it changes.
How could one tackle this?
Beta Was this translation helpful? Give feedback.
All reactions