Closed grumpyoldman-io closed 1 year ago
Update:
I've managed to fix this. Well, it wasn't really a bug in the first place. More of a weird expectation from my end coming from Lerna.
I made the following assumptions:
Both were incorrect and this is how I dealt with them:
This got me to a stage where the plugin was correctly feeding information to my app, but this did not give me a nice developer experience as I now need to build the plugin and reload the app on each change. I worked around this with the following steps:
The result is a fully working dev environment (incl HMR) with NextJS + Tailwind + custom tailwind plugin.
I've updated the repo accordingly and you can see the state here: https://github.com/grumpyoldman-io/web/tree/70135a9a66af2d345710ddd8ff20aa733c98eaec
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
I've created a basic repo using nextjs preset. I've added Tailwind according to the recipe and now I want to add a custom Tailwind plugin. When I add said plugin (which I created using a js lib generator) Im confronted with the following error:
Expected Behavior
Im able to import my module without errors
Steps to Reproduce
A clean repo: https://github.com/grumpyoldman-io/web
Environment