Giter Site home page Giter Site logo

v-viewer 使用报错 about v-viewer HOT 7 CLOSED

ZGKtob avatar ZGKtob commented on July 17, 2024
v-viewer 使用报错

from v-viewer.

Comments (7)

mirari avatar mirari commented on July 17, 2024 2

@orlando-labs
Vue3 needs to use vue3-viewer, the version is up to 3.0.11.

https://github.com/mirari/vue3-viewer

from v-viewer.

mirari avatar mirari commented on July 17, 2024

vue和v-viewer的版本号是什么?

from v-viewer.

ZGKtob avatar ZGKtob commented on July 17, 2024

vue 3.0 v-viewer 3.0.10

from v-viewer.

mirari avatar mirari commented on July 17, 2024

我这里使用同样的版本环境没有复现问题,需要提供更多信息

from v-viewer.

orlando-labs avatar orlando-labs commented on July 17, 2024

Hi, @mirari, first of all, thanks for your work, I highly appreciate it.

I can confirm the issue with the component-based usage
"v-viewer": "^1.6.4",
"vue": "^3.2.37",

[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating '_vm._self._c')

from v-viewer.

JustGogoing avatar JustGogoing commented on July 17, 2024

不要使用pnpm,我将pnpm切换成了npm就好了

Cannot read properties of undefined (reading '_c')

import 'viewerjs/dist/viewer.css'; import { component as Viewer } from 'v-viewer';

这样使用就报错

from v-viewer.

mirari avatar mirari commented on July 17, 2024

pnpm下,库的依赖不会出现在node_modules根目录里,显式引入viewerjs就行了,文档已更新

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.