Git Product home page Git Product logo

Comments (4)

mirari avatar mirari commented on June 12, 2024

v-viewer声明了依赖viewerjs,但是pnpm安装时不会将viewerjs直接安装到node_modules目录下。为了统一效果,现在需要显式安装viewerjs本身。
npm install v-viewer@legacy viewerjs

之前版本的package.json里在dependencies声明了viewerjs,所以npm安装时不写也没问题。
其实打包时剥离viewerjs的最初原因是把css文件一起打包进js里会在nuxt等SSR框架下报错,所以将这部分逻辑改为用户自主控制了

from v-viewer.

cddsgtc avatar cddsgtc commented on June 12, 2024

因为这个昨天上生产报错,今天来加班了。改成1.7.1虽然打包不报错,但是生产直接页面挂了。最少也得是1.6.x才行。哎。。。
有同样问题者,引以为戒。

from v-viewer.

mirari avatar mirari commented on June 12, 2024

非常抱歉发布时没考虑周全。在1.7.4中重新补充了dependencies,应该可以兼容npm以前的安装方式

from v-viewer.

cddsgtc avatar cddsgtc commented on June 12, 2024

非常抱歉发布时没考虑周全。在1.7.4中重新补充了dependencies,应该可以兼容npm以前的安装方式

大家都吸取教训吧,这样的基本等同于破坏性更改还是从版本号上想办法打断比较好。

from v-viewer.

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.