Giter Site home page Giter Site logo

Comments (6)

LinusBorg avatar LinusBorg commented on June 11, 2024

vue-cli contributor here - You can probably ignore this, it seems to be a problem on our side with https://github.com/vuejs/vue-jest

I may be wrong, but @solidevolution didn'T provide much to work on.

from postcss-cssnext.

solidevolution avatar solidevolution commented on June 11, 2024

@LinusBorg I can provide you more but a sandbox mock wouldn't bring you much.
It's a bug on console / npm run test. Browser/Sandbox working fine.

It's simply what I wrote, do

"vue create something"

of vue-cli, then

"npm install -D postcss/cssnext"

Add it to .postcssrc

and insert nested css ("4") in a component:

& .a {
  z-index: 1;

  & .b {
    z-index: 2;
  }
}

from postcss-cssnext.

LinusBorg avatar LinusBorg commented on June 11, 2024

Well, on second thjought:

vue-cli doesn't even include cssnext for you, and you didn't do so either, as far as I can tell,so I have no idea why you report this as a problem in our reporsitory, and even less of an idea why this should be a problem with cssnext / postcss-nested.

from postcss-cssnext.

solidevolution avatar solidevolution commented on June 11, 2024

@LinusBorg I added more information. The problem happens if we combine vue-cli with cssnext and write tests. So I had no idea where to start with the bug:

  1. jest
  2. vue-jest
  3. vue-cli
  4. cssnext

So I started with you guys, having more background of the deep structures.

PS: postcss/cssnext bundles a lot of packages, one of those is postcss-nesting. not nested.
PPS: Our css next solution would be to bundle the postcss packages self to be ready for css4 ;)

from postcss-cssnext.

LinusBorg avatar LinusBorg commented on June 11, 2024

...so does it work with postcss-nesting 4.2.1?

...and the current version is ^4.0.1, which would install 4.2.1 anyway, so update to which version?

from postcss-cssnext.

solidevolution avatar solidevolution commented on June 11, 2024

Sorry, tried it with 4.2.1 and got the same error. So I was on the wrong path.

@LinusBorg identified the problem in vue-jest, a middleware to test vue components with jest.

from postcss-cssnext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.