Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

7.0 regression #39

Closed
ai opened this issue Sep 15, 2018 · 1 comment
Closed

7.0 regression #39

ai opened this issue Sep 15, 2018 · 1 comment

Comments

@ai
Copy link
Sponsor Contributor

ai commented Sep 15, 2018

Message:
    rule.params.replace is not a function
Details:
    postcssNode: @media (width < 660px) {

.header__content {
      lost-column: 16/16 flex
  }
    }
    fileName: /home/ai/Dev/cultofmartians/front/dev/main.pcss

Stack:
TypeError: rule.params.replace is not a function
    at /home/ai/Dev/cultofmartians/front/dev/blocks/header/header.pcss:9:5
    at /home/ai/Dev/cultofmartians/front/node_modules/postcss-media-minmax/index.js:71:33
var processors = [
  require('postcss-import')(),
  require('postcss-mixins')(),
  require('postcss-nested')(),
  require('postcss-simple-vars')(),
  require('postcss-property-lookup')(),
  require('postcss-assets')({
    basePath: 'dev/blocks'
  }),
  require('postcss-inline-svg')({
    path: 'dev/blocks'
  }),
  require('postcss-responsive-type')(),
  require('postcss-calc')(),
  require('postcss-hexrgba')(),
  require('postcss-custom-media')(),
  require('postcss-media-minmax')(),
  require('lost')(),
  require('autoprefixer')()
];

The error came from postcss-media-minmax but looks like AST was broken after postcss-custom-media because I got the error after postcss-custom-media update.

Could be relevant in error behind this question #38

@jonathantneal
Copy link
Contributor

Thanks for reporting this error. I believe this is resolved in v7.0.2 407c33c.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants