Julienng/problem_multiple_instance_twind

★ 1Forks 0TypeScriptGitHub ↗Compare

README

Problem with double setup with twind

To test the double instance :

  • pnpm i
  • pnpm build:ui
  • pnpm dev:remix

When you load the app on http://localhost:3000, you can see in the console an error :

image

The twind config for the remix app is loaded with twind.config.ts and the setup is done in my-app/app/utils/stylesContext

To make it works, I have to setup two twind, one for ui, one for my-app.

To see it working, you can uncomment the setup : ui/src/twind.config.js at the end of the file.

  • stop the server
  • uncomment
  • pnpm build:ui
  • pnpm dev:remix

To test with CRA : pnpm dev:cra

To test with vite : pnpm dev:vite

Contributors

Julienng

Issues