Can't resolve 'fs' - NEXT.js #219
Answered
by
ben-rogerson
tonymanuel
asked this question in
Q&A
-
When I import tw from "twin.macro" in my NEXT.js application, it throws me the following error. Could you please tell me how can I get rid of this error. |
Beta Was this translation helpful? Give feedback.
Answered by
ben-rogerson
Nov 29, 2020
Replies: 2 comments 17 replies
-
Sure, check out this next config for the fix. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
tonymanuel
-
Thanks a lot for your reply. Solved it. Somehow the next.config.js was not
working at first.
Now everything's working fine.
Amazing package. Thanks so much.
Rodrigo Martinez
| Frontend Developer | UI-UX | Product Design
…On Wed, May 12, 2021 at 11:07 PM Ben Rogerson ***@***.***> wrote:
@rodmartinezmedina <https://github.com/rodmartinezmedina> Do the next
examples <https://github.com/ben-rogerson/twin.examples> work for you?
Perhaps you could compare against those examples to see where the issue is.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#219 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANC6NIDKBQH74ZUC2GSDBU3TNLUYRANCNFSM4UGVASWA>
.
|
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure, check out this next config for the fix.
New: This isn't needed in newer versions of next. If you're seeing errors, try removing your
.next
folder and restarting your dev process.