You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by pawanrana1992 July 7, 2023
I am trying to use Typewind in nextjs 13.4.x with SWC support, but it is not working as per the suggested configuration for swc from Typewind side. I am getting error like this. can anyone please suggest what is the right configuration for Nextjs 13.4. I love this plugin and any how I need to use it. please help.
Note: also if i am using typewind inside rollup lib, and after build and use inside nextjs project with babel.
library build has reference to use custom config name like my_colors_primary_main. and not throw any error with rollup build. and storybook also works fine with custom colors.
typewind inside the library used as external dep
Nextjs setup with tailwind and typewind using babel to work. (tw.my_colors_primary_main works in the nextjs)
Added the tailwind theme config as per lib requirement
Generated the typewind config using npx typewind generate
Importing a component from library to nextjs project
the library throw error that my_colors_primary_main not found.
Please help how can i resolve this issue as well.
Thanks in advance team.
The text was updated successfully, but these errors were encountered:
I believe the latest release should fix this, sorry for the late response. Btw if the swc plugin throws any error later on due to compat reasons, you can always fall back to the babel plugin.
Discussed in #49
Originally posted by pawanrana1992 July 7, 2023
I am trying to use Typewind in nextjs 13.4.x with SWC support, but it is not working as per the suggested configuration for swc from Typewind side. I am getting error like this. can anyone please suggest what is the right configuration for Nextjs 13.4. I love this plugin and any how I need to use it. please help.
Note: also if i am using typewind inside rollup lib, and after build and use inside nextjs project with babel.
my_colors_primary_main
. and not throw any error with rollup build. and storybook also works fine with custom colors.tw.my_colors_primary_main
works in the nextjs)npx typewind generate
my_colors_primary_main
not found.Please help how can i resolve this issue as well.
Thanks in advance team.
The text was updated successfully, but these errors were encountered: