Giter Club home page Giter Club logo

Comments (1)

Mitsunee avatar Mitsunee commented on August 22, 2024

about de-duping:

$ yarn why postcss
yarn why v1.22.17
[1/4] Why do we have the module "postcss"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "[email protected]"
info Has been hoisted to "postcss"
info This module exists because it's specified in "devDependencies".
info Disk size without dependencies: "340KB"
info Disk size with unique dependencies: "636KB"
info Disk size with transitive dependencies: "636KB"
info Number of shared dependencies: 3
=> Found "next#[email protected]"
info This module exists because "next" depends on it.
info Disk size without dependencies: "312KB"
info Disk size with unique dependencies: "1.26MB"
info Disk size with transitive dependencies: "1.26MB"
info Number of shared dependencies: 3
=> Found "postcss-theme-ui#[email protected]"
info This module exists because "postcss-theme-ui" depends on it.
info Disk size without dependencies: "684KB"
info Disk size with unique dependencies: "1.7MB"
info Disk size with transitive dependencies: "1.82MB"
info Number of shared dependencies: 8
Done in 0.19s.

$ yarn-deduplicate -l
Package "@babel/code-frame" wants ^7.0.0 and could get 7.16.7, but got 7.15.8
Package "@babel/helper-validator-identifier" wants ^7.14.5 and could get 7.16.7, but got 7.15.7
Package "@babel/helper-validator-identifier" wants ^7.14.9 and could get 7.16.7, but got 7.15.7
Package "@babel/highlight" wants ^7.10.4 and could get 7.16.7, but got 7.14.5
Package "@babel/highlight" wants ^7.14.5 and could get 7.16.7, but got 7.14.5
Package "@babel/runtime" wants ^7.10.2 and could get 7.16.5, but got 7.15.3
Package "array-includes" wants ^3.1.2 and could get 3.1.4, but got 3.1.3
Package "array-includes" wants ^3.1.3 and could get 3.1.4, but got 3.1.3
Package "caniuse-lite" wants ^1.0.30001202 and could get 1.0.30001298, but got 1.0.30001294
Package "caniuse-lite" wants ^1.0.30001219 and could get 1.0.30001298, but got 1.0.30001294
Package "caniuse-lite" wants ^1.0.30001228 and could get 1.0.30001298, but got 1.0.30001294
Package "debug" wants ^4.0.1 and could get 4.3.3, but got 4.3.2
Package "debug" wants ^4.1.1 and could get 4.3.3, but got 4.3.2
Package "debug" wants ^4.3.2 and could get 4.3.3, but got 4.3.2
Package "electron-to-chromium" wants ^1.3.723 and could get 1.4.38, but got 1.3.878
Package "es-abstract" wants ^1.18.0-next.2 and could get 1.19.1, but got 1.18.5
Package "estraverse" wants ^5.1.0 and could get 5.3.0, but got 5.2.0
Package "estraverse" wants ^5.2.0 and could get 5.3.0, but got 5.2.0
Package "is-core-module" wants ^2.2.0 and could get 2.8.0, but got 2.6.0
Package "is-glob" wants ^4.0.0 and could get 4.0.3, but got 4.0.1
Package "jsx-ast-utils" wants ^2.4.1 || ^3.0.0 and could get 3.2.1, but got 3.2.0
Package "postcss-selector-parser" wants ^6.0.6 and could get 6.0.8, but got 6.0.6
Package "postcss-value-parser" wants ^4.0.0 and could get 4.2.0, but got 4.1.0

postcss currently exists in 3 versions. The version installed as a devDependency goes entirely unused even after deduplications and there is also an instance of postcss@7 floating around due to postcss-theme-ui not being updated.

The best solution would be to remove postcss from the devDependencies to let nextjs handle the version itself and either replacing postcss-theme-ui (with jit-props and var-optimize maybe?) or updating it.

Still not sure if it's possible to use ESLint8 with nextjs at this time. yarn why does not mention it and the next lint command is not used.

from fgo-timers.

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.