【发布时间】:2021-10-14 21:42:00
【问题描述】:
我正在尝试在我的笔记本电脑上运行我的项目,它适用于所有其他设备,具有相同的代码,但由于某种原因我无法在其上运行 tailwind,我收到以下错误
in ./src/components/Adventures/Points.vue?vue&type=style&index=0&id=3e2b19af&scoped=true&lang=sass
Syntax Error: Error: Loading PostCSS Plugin failed: Object.fromEntries is not a function
(@/home/dawid/Desktop/Project/postcss.config.js)
at Array.map (<anonymous>)
@ ./node_modules/vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!
postcss.config.js
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
【问题讨论】:
-
您能分享一下您安装的 postcss 和 autoprefixer 版本吗?
-
@AtifZia "@tailwindcss/postcss7-compat": "^2.2.4", "autoprefixer": "^9.8.6", "postcss": "^7.0.36",跨度>
标签: vue.js vuejs3 tailwind-css postcss