vuejs / vue-jest

Jest Vue transformer
MIT License
748 stars 156 forks source link

Can`t combine css modules and postcss #340

Closed gpyshenko closed 3 years ago

gpyshenko commented 3 years ago

I get error in my vue file if i combine css modules and lang="postcss".

<style module lang="postcss">
.Logo {
    &__image {
        height: auto;
    }
}
</style>

My error

No PostCSS Config found in: path_to_project

My config postcss in nuxt.config.js

build: {
      postcss: {
          'plugins': {
              'postcss-import': true,
              'precss': {},
          },
      },
},

If i add postcss.config.js then process dont stop.

Versions: vue-jest: "^3.0.7"

lmiller1990 commented 3 years ago

Can you try upgrading to 4.x? 3.x has not had a release for a long time.

imolater commented 3 years ago

@gpyshenko Hi, i'm running into same problem. This is because an endless cycle (while) in postcss-compiler file. I made a fork with fix.

gpyshenko commented 3 years ago

@gpyshenko Hi, i'm running into same problem. This is because an endless cycle (while) in postcss-compiler file. I made a fork with fix.

Thank you so much))