NEXT JS + twin macro theme #782
Unanswered
wdcs-jayfatania
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey there Lately people are using a src/app directory with next so I think you may only need to adjust your project folders in the // withTwin.js
const includedDirs = [
path.resolve(__dirname, 'src/components'),
path.resolve(__dirname, 'src/pages'),
path.resolve(__dirname, 'src/styles'),
] Then make sure you're loading the file by wrapping your config: // next.config.js
const withTwin = require('./withTwin.js')
module.exports = withTwin({
// ...
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello @ben-rogerson, I am using twin macro in my next js project with typescript.
I am tryping to import twin macro theme to use colors of that but getting error like below,
TypeError: (0 , twin_macro__WEBPACK_IMPORTED_MODULE_1__.theme) is not a function
Here is my code,
I dont know what I am missing, can you help me out this please.
Beta Was this translation helpful? Give feedback.
All reactions