모듈 빌드 실패(./node_modules/postcss-loader/dist/cjs.js에서): 오류: PostCSS 플러그인 autopref

vue+uni-app을 사용하여 WeChat 애플릿을 개발하고 실행 후 오류를 보고합니다.

Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
Error: PostCSS plugin autoprefixer requires PostCSS 8.
Migration guide for end-users:
https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users

여기에 이미지 설명을 삽입하세요

해결책

오류 이유: autoprefixer 버전이 너무 높습니다.

해결 방법: autoprefixer 버전을 낮추세요.

실행: npm i postcss-loader [email protected]
여기에 이미지 설명을 삽입하세요
그런 다음 다시 실행하여 성공합니다.

おすすめ

転載: blog.csdn.net/qq_44035882/article/details/129267686