Element: [Bug Report] Cannot find name 'PluginObject'.

Created on 30 May 2019  ·  13Comments  ·  Source: ElemeFE/element

Element UI version

2.9.1

OS/Browsers version

Chrome/win10

Vue version

2.6.10

Reproduction Link

https://codepen.io/Danik_codepenIO/pen/gyMQry

Steps to reproduce

build 2.9.1

What is Expected?

no error

What is actually happening?

Need add to element-ui/types/element-ui.d.ts
import Vue, { PluginObject } from 'vue'

Most helpful comment

@WaSheep when you will merge to master branch??

All 13 comments

Is this fixed?

Don't fix in master branch ¯ \ _ (ツ) _ / ¯

It's not fixed now.

It's not fixed now.

If you want to fix this problem yourself, you can try this:

  1. Open the node_modules/element-ui/types/element-ui.d.ts file and modify the first line of content
  2. import Vue from 'vue' is modified to import Vue, {PluginObject} from 'vue'

If you want to fix this problem yourself, you can try this:

  1. Open the node_modules/element-ui/types/element-ui.d.ts file and modify the first line of content
  2. import Vue from 'vue' is modified to import Vue, {PluginObject} from 'vue'

I do it now. But it will redo when you rerun 'npm install'.

I did not find that the file was re-covered in the hot load mode. This problem will eventually be fixed by the official.

@WaSheep when you will merge to master branch??

When could you release a new version with this issue fixed?

facing the same error here. Is there any update for this bug?

Same error for me

Still got this error after npm i , when i use it in a ts project, version: ^2.6.1 and 2.9.1.
Is there any solutions or help ?

Still got this error after npm i , when i use it in a ts project, version: ^2.6.1 and 2.9.1.
Is there any solutions or help ?

Use verdaccio

Was this page helpful?
0 / 5 - 0 ratings