【发布时间】:2021-09-25 00:08:15
【问题描述】:
我正在使用带有 typescript 和 tailwindcss 的 nextjs。我想将styles 文件夹移动到src 文件夹,我已经在tsconfig.json 文件中添加了带有值src 选项的baseUrl,但是我收到了这样的错误:
./node_modules/next/dist/compiled/css-loader/cjs.js??ruleSet[1].rules[2].oneOf[5].use[1]!./node_modules/next/dist/compiled/postcss-loader/cjs.js??ruleSet[1].rules[2].oneOf[5].use[2]!./node_modules/tailwindcss/tailwind.css
TypeError: Object.fromEntries is not a function
以及我如何将样式文件夹移动到 src 文件夹,我想让我的文件夹结构更简单。谢谢
【问题讨论】:
-
这是否回答了您的问题:Object.fromEntries is not a function error when using chakra-ui and next.js?
Object.fromEntries()仅从 Node.js v12 开始支持。
标签: typescript next.js tailwind-css