Skip to content

Vue named property import on Vue3 generates a compilation warning #50

Closed
@philippedasilva-orizone

Description

Environment used:

  • nodejs v14.15.5
  • Vue v3.0.0

As per v2.2.1, we can note after a fresh install the following compilation warning on a fresh new install:

WAIT  Compiling...                                               13:14:12

98% after emitting CopyPlugin

WARNING  Compiled with 1 warning                                 13:14:13

warning  in ./node_modules/mdi-vue/main.js

"export 'default' (imported as 'Vue') was not found in 'vue'


App running at:
- Local:   http://localhost:8080/ 
- Network: http://192.168.1.93:8080/

This is pointing specifically to the main.js file where we can see the current implementation to support both Vue 2.x and Vue 3.x using the same package.

Any idea how to prevent that? I'm more than happy to help fixing that but I have no experience dealing with conditional compilation using javascript.

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