remix-expo
remix-expo copied to clipboard
a few minor issues, errors, and questions
Hi buddy,
Amazing work thus far, such an awesome repo.
I'll be opening a small pull request for some minor fixes but wanted to throw these up for visibility so others can see for the record.
- Tailwind auto complete/intellisence dropdown in vscode doesn't work for me when using twrnc; does it work for you am I missing any settings (could we need a tailwind config in the project UI folder so the vscode plugin picks it up)?
- Remix doesn't auto refresh on any changes on ui components.
- Looks like this was being discussed here:
- https://github.com/remix-run/remix/issues/1193#issuecomment-1033366665
Expanding on the second point: hot-reload/refresh is working in the Expo app but not in the Remix app when making changes to the shared-ui components. I need to manually save the remix app to render changes, bit of a minor dev flow issue when making changes to a component we need to double save the changes in both remix and the UI folder.
Errors remaining that I haven't been able to solve.
- "Cannot find module '~components/index' or its corresponding type declarations."
- I managed to work around by just using the full path resolution when importing, which you will see in my upcoming PR as the TS component alias didn't work when using named exports or trying to export multiple component files from the UI folder.
Resolution:

I also had this error but solved it by going up one directory as it wasn't resolving the correct path to the file :)
@algoflows figured out a fix for tailwind CSS intellisence assuming you're using the extension in VSCode, you have to add style
custom class attributes in the settings so it picks it up:

Also having issues with the typescript errors and resolving paths. Will dig deeper and update if I find a solution. @tyrauber any suggestions here? Assuming it has to do with eslint in a monorepo, but I have limited experience here.