Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

TypeError: Vue is not a constructor #155

@HelenLyuRey

Description

@HelenLyuRey

Hi

I did the step exactly like what's written in readme, but I got errors using either way for Vue in React in my project.

  1. The way "without the Babel plugin" -- using VueWrapper , I got the error which seems like an internal issue since the error comes from vuera.cjs.js.
TypeError: Vue is not a constructor
createVueInstance
node_modules/vuera/dist/vuera.cjs.js:258
  1. The way "with Babel" (I set up Babel and use the component name without the wrapper), I got this error (Counter is my component name).
InvalidCharacterError: Failed to execute 'createElement' on 'Document': The tag name provided ('/static/media/Counter.c2c39f22.vue') is not a valid name.
▶ 14 stack frames were collapsed.
Module.<anonymous>
src/index.js:12 

I don't understand why they result in different errors and how should I solve them? It's been bugging me for a few days and I'm not sure where I did wrong.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions