vue-draggable-nested-tree icon indicating copy to clipboard operation
vue-draggable-nested-tree copied to clipboard

Internet Explorer 11 showing always blank, no errors

Open albertoziveri opened this issue 6 years ago • 14 comments
trafficstars

Dear Developer, first of all, congratulation for making the most complete and customizable vue nested tree component.

I am struggling in making it compatible with IE11. While I comprehend it's an old browser, unfortunately many companies still use it so I have to provide compatibility, for at least 1-2 more years.

Taking for example the demo code from CodePen, I cannot make it work for IE11. After removing ES6 incompatibilities (in the demo there are a few), IE doesn't give any error in the debug console, but it removes the #app div instead and doesn't show anything. I also added the promise polyfill.. But nothing, I cannot figure it out and I'm sure it's not hard to make it compatible.

Regards

albertoziveri avatar Feb 05 '19 18:02 albertoziveri

I will check it.

phphe avatar Feb 12 '19 02:02 phphe

I will check it.

Thanks. Still trying to detect where your code can't render in IE but can't figure it out. Cheers

albertoziveri avatar Feb 14 '19 17:02 albertoziveri

I'm encountering same issue on IE 11 specially with using tree-helper, seems there's a lot of compatibility issue with using IE 11, I'll keep update on your post regarding on this issue,

Thanks so much for making this library, you rock man.

mugiwaranojem avatar Feb 18 '19 11:02 mugiwaranojem

Any news on this? I won't give up

albertoziveri avatar Feb 27 '19 18:02 albertoziveri

@phphe how to let it work in ie 11?

import的时候就报错了,是不是没做polify

SyntaxError: 缺少标识符

weituotian avatar Mar 06 '19 06:03 weituotian

Any news about this? I would be able to pay someone that fix this.

albertoziveri avatar Mar 18 '19 10:03 albertoziveri

@albertoziveri @weituotian sorry. I ignored github notification emails because notifications of this issue folded in one line in my mailbox. I checkd and fixed the issue this night. use latest 2.2.9 babel polyfill is required. you can import whole or part of babel polyfill, I am not sure. babel polyfill is not the main reason. The main reason is ie 11 don't support slot-scope="{data, store}". The template must be compiled or use slot-scope="object" check this: https://github.com/phphe/vue-draggable-nested-tree#template_for_old_browsers check this: https://github.com/phphe/vue-draggable-nested-tree/tree/master/ie11-example ie11-example is able to run in ie11

phphe avatar Mar 22 '19 16:03 phphe

hi, I met the same issue. Any updates?

xingqiwu55555 avatar May 22 '19 06:05 xingqiwu55555

@phphe hello, Maybe I find the key of issue, but I need your help. please contact with me soon!

more details: there is a library in this component. that's: vue-functions. I noticed that the library has some methods, such as:

export function* iterateObjectWithoutDollarDash(obj) {
  for (const key in obj) {
    const start = key.substr(0, 1)
    if (start !== '$' && start !== '_') {
      yield {key, value: obj[key]}
    }
  }
}

but if I delete those functions, it's normal.

xingqiwu55555 avatar May 22 '19 08:05 xingqiwu55555

@xingqiwu55555 but this one works in ie11: https://github.com/phphe/vue-draggable-nested-tree/tree/master/ie11-example

phphe avatar May 22 '19 09:05 phphe

I have the same issue.. Just by writing into the code like " import { DraggableTree } from 'vue-draggable-nested-tree' ", the whole project is blank in the IE11. And I followed the IE11 example, but it's not working also.

11

Please help me..

SONG-JY avatar May 29 '19 01:05 SONG-JY

@SONG-JY your code is strange. you should use 'import'

phphe avatar May 29 '19 02:05 phphe

@xingqiwu55555 but this one works in ie11: https://github.com/phphe/vue-draggable-nested-tree/tree/master/ie11-example

this example is limited, you can try the imported way.

xingqiwu55555 avatar May 29 '19 05:05 xingqiwu55555

@xingqiwu55555 but this one works in ie11: https://github.com/phphe/vue-draggable-nested-tree/tree/master/ie11-example

this example is limited, you can try the imported way.

can you show me reproduce or error?

phphe avatar May 29 '19 07:05 phphe