Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a few minor issues, errors, and questions #4

Open
algoflows opened this issue Mar 27, 2022 · 1 comment
Open

a few minor issues, errors, and questions #4

algoflows opened this issue Mar 27, 2022 · 1 comment

Comments

@algoflows
Copy link

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.

  1. 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)?
  2. Remix doesn't auto refresh on any changes on ui components.

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:
Screenshot 2022-03-27 at 21 09 07

Screenshot 2022-03-27 at 19 06 50

I also had this error but solved it by going up one directory as it wasn't resolving the correct path to the file :)
Screenshot 2022-03-27 at 19 10 09

@joelrojo
Copy link

@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:

CleanShot 2022-11-24 at 13 05 26@2x

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants