错误:PostCSS插件tailwindcss需要PostCSS 8

12 浏览
0 Comments

错误:PostCSS插件tailwindcss需要PostCSS 8

我安装了新的tailwindcss版本2.0,但出现了以下错误。我尝试卸载postcss和tailwindcss,但不起作用。需要帮助。

以下是我的package.json文件:

{

"name": "nifo-school",

"version": "0.1.0",

"private": true,

"scripts": {

"serve": "vue-cli-service serve",

"build": "vue-cli-service build",

"lint": "vue-cli-service lint",

"electron:build": "vue-cli-service electron:build",

"electron:serve": "vue-cli-service electron:serve",

"postinstall": "electron-builder install-app-deps",

"postuninstall": "electron-builder install-app-deps"

},

"main": "background.js",

"dependencies": {

"react": "^16.3.0",

"@ivanv/vue-collapse-transition": "^0.2.1",

"autoprefixer": "^10.0.2",

"axios": "^0.21.0",

"core-js": "^3.6.5",

"electron": "^8.0.0",

"electron-drag": "^2.0.0",

"jquery": "^3.5.1",

"js-cookie": "^2.2.1",

"postcss-cli": "^=8.0",

"react-collapse": "^5.0.1",

"summernote": "^0.8.18",

"tailwindcss": "^2.0.1",

"v-click-outside": "^3.1.2",

"vue": "^2.6.11",

"vue-html-editor": "^0.2.1",

"vue-i18n": "^8.22.1",

"vue-router": "^3.2.0",

"vue2-editor": "^2.10.2",

"vuex": "^3.5.1"

},

"devDependencies": {

"@vue/cli-plugin-babel": "~4.5.0",

"@vue/cli-plugin-eslint": "~4.5.0",

"@vue/cli-plugin-router": "~4.5.0",

"@vue/cli-service": "~4.5.0",

"@vue/eslint-config-airbnb": "^5.0.2",

"babel-eslint": "^10.1.0",

"electron-devtools-installer": "^3.1.0",

"eslint": "^6.7.2",

"eslint-plugin-import": "^2.20.2",

"eslint-plugin-vue": "^6.2.2",

"lint-staged": "^9.5.0",

"node-sass": "^4.12.0",

"postcss": "^=8.1",

"sass-loader": "^8.0.2",

"vue-cli-plugin-electron-builder": "~2.0.0-rc.4",

"vue-template-compiler": "^2.6.11"

},

"gitHooks": {

"pre-commit": "lint-staged"

},

"lint-staged": {

"*.{js,jsx,vue}": [

"vue-cli-service lint",

"git add"

]

}

}

谢谢帮助。

0