老师,我的tailwindcss.config.js文件module和require都报错?
来源:12-8 样式修正:处理难看的 scrollBar

CoderVi
2023-04-05
‘module’ is not defined 以及 ’require’ is not defined,把老师的源码复制过来也是报错的,但是代码可以正常运行,是我之前配置的时候漏了哪里吗?
写回答
2回答
-
中律十七
2023-10-21
你这两报错是不是编辑器的eslint报错啊?如果是eslint报错那是因为eslint里没加node的运行环境
00 -
别人都说我可帅
2023-04-05
你把tailwindcss.config后缀名改成cjs,不是js
042023-04-05
相似问题