GithubHelp home page GithubHelp logo

Comments (15)

wswmsword avatar wswmsword commented on May 23, 2024

嗯,1.3.2 不需要 PostCSS 8,试一下删除 node_modules 重新安装还报不报错,升级到 PostCSS 8 的版本(2.1.0)修复了桌面端 fixed 定位不准确的问题。

from postcss-mobile-forever.

sunkebkn8 avatar sunkebkn8 commented on May 23, 2024

嗯,1.3.2 不需要 PostCSS 8,试一下删除 node_modules 重新安装还报不报错,升级到 PostCSS 8 的版本(2.1.0)修复了桌面端 fixed 定位不准确的问题。
试了很多次不太行,postcss版本我也切换了几次

from postcss-mobile-forever.

wswmsword avatar wswmsword commented on May 23, 2024

node_modules内postcss的版本

项目 node_modules 里 postcss 的版本是多少?

from postcss-mobile-forever.

sunkebkn8 avatar sunkebkn8 commented on May 23, 2024

image
这个是版本号

from postcss-mobile-forever.

wswmsword avatar wswmsword commented on May 23, 2024

看起来好像没什么问题,试一下删除 package-lock 和 node_modules,然后安装下面这个看看行不行。

npm install --save-dev postcss postcss-mobile-forever

from postcss-mobile-forever.

wswmsword avatar wswmsword commented on May 23, 2024

还是不行吗

from postcss-mobile-forever.

fdy696 avatar fdy696 commented on May 23, 2024

1.3.2不存在

from postcss-mobile-forever.

fdy696 avatar fdy696 commented on May 23, 2024

image

from postcss-mobile-forever.

wswmsword avatar wswmsword commented on May 23, 2024

1.3.2不存在

@fdy696 对的,这个插件在 2.1.2 之前不叫 postcss-mobile-forever,是后来才改了名字。

您试一下安装最新的版本,最新版本是 3.3.2。我现在打不开 npm 官网,不然可以截个这个 postcss-mobile-forever 最小版本号的图。

from postcss-mobile-forever.

zhuweilong avatar zhuweilong commented on May 23, 2024

相同问题 也是报错 请问作者解决办法有么

from postcss-mobile-forever.

wswmsword avatar wswmsword commented on May 23, 2024

@zhuweilong 你好,请问您是安装的 postcss-mobile-forever 吗,以前的 postcss-mobile-to-multi-displays 不在维护了,名字换成了 postcss-mobile-forever。

from postcss-mobile-forever.

zhuweilong avatar zhuweilong commented on May 23, 2024

@wswmsword 用的是最新的postcss-mobile-forever 你的demo vue 用的vite 你试试webpack node是10.19.0

from postcss-mobile-forever.

wswmsword avatar wswmsword commented on May 23, 2024

@zhuweilong 我写了个 Vue 的 webpack 例子,node 18.16.0 正常运行。我试了把 node 切到 10.19.0,有版本问题,你有在线的例子吗,我可以帮你调试看看,还是你就是要我这个例子的 node 10.19.0 的版本的?

from postcss-mobile-forever.

zhuweilong avatar zhuweilong commented on May 23, 2024

@wswmsword 你试试低版本的node10.19.0 因为相关关联的node-sass等 引入的依赖包都是以低版本node为标准的 vue2.6.11+vant2.12.47

from postcss-mobile-forever.

wswmsword avatar wswmsword commented on May 23, 2024

@sunkebkn8 我写了依赖低版本 PostCSS(大于 v6.0.0)的 postcss-mobile-forever,按下面的命令安装应该不会报错“必须要求 PostCSS 8”了:

npm install postcss-mobile-forever@legacy --save-dev

from postcss-mobile-forever.

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.