node.getIterator is not a function

 

Scenario: vue builds a mobile page, and main.js introduces global css to report an error.

Reason: The problem caused by using postcss-px2rem and postcss-px2rem-exclude,

Solution: After uninstalling postcss-px2rem, install postcss-pxtorem. Set the following code in postcss.config.js, you can change the settings by yourself to solve the problem.

const autoprefixer = require('autoprefixer');
const px2rem = require('postcss-pxtorem');

module.exports = {
  plugins: [autoprefixer(), px2rem({ rootValue: 75, unitPrecision: 5, propList: ['*'] })], 
};

おすすめ

転載: blog.csdn.net/weixin_45701199/article/details/121219782