Giter VIP home page Giter VIP logo

Comments (6)

lmiller1990 avatar lmiller1990 commented on May 29, 2024

I reproduced with your example

image

from test-utils.

lmiller1990 avatar lmiller1990 commented on May 29, 2024

Related? vuejs/core#7020

from test-utils.

lmiller1990 avatar lmiller1990 commented on May 29, 2024

It looks like this can be 'fixed' by removing

test-utils/src/mount.ts

Lines 77 to 82 in bd21a8e

let errorOnMount = null
app.config.errorHandler = (err, instance, info) => {
errorOnMount = err
return originalErrorHandler?.(err, instance, info)
}

It looks like we need to swallow the error, so we can mount your component, then report on errors. Instead of errorOnMount, I wonder if we should be doing something like errorOnSetupOrCreate (to support both Options and Composition API).

I wonder if you would be interested in trying to fix this? You can start work by cloning the repo, adding your test case, run in watch mode, and modify the src/mount.ts to try and to get everything passing.

from test-utils.

voidus avatar voidus commented on May 29, 2024

Thank you so much for your swift response. I'll try to find some time to look into it, but if anyone else is curious don't let that stop you.

from test-utils.

lmiller1990 avatar lmiller1990 commented on May 29, 2024

Don't everyone submit a PR at once!

from test-utils.

voidus avatar voidus commented on May 29, 2024

I can confirm that removing that block fixes the problem, but I don't know vue enough to understand vuejs/core#7020 so I'm not sure if it's a good idea?

from test-utils.

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.