Metro-UI-CSS icon indicating copy to clipboard operation
Metro-UI-CSS copied to clipboard

Metro 4 is not imported in project when using es6

Open vahidbabaveisi opened this issue 2 years ago • 2 comments

Hello,

I am working on a project that uses Metro UI framework. When I want to import the library it does not work. CSS is ok. I put an example in Codepen using CDN, but I can not put the node_modules folder to show the original problem. When I call table command, it does not recognize table but it recognize metro in console. I have to use await import structure due to using self-executive function. Also, I use import 'metro4' in my project, but the problems exists there again.

https://codepen.io/vahidbabaveisi/pen/WNJRReJ

vahidbabaveisi avatar Sep 15 '22 13:09 vahidbabaveisi

Hi! Use metro from cdn

чт, 15 сент. 2022 г. в 16:15, vahidbabaveisi @.***>:

Hello,

I am working on a project that uses Metro UI framework. When I want to import the library it does not work. CSS is ok. I put an example in Codepen using CDN, but I can not put the node_modules folder to show the original problem. When I call table command, it does not recognize table but it recognize metro in console. I have to use await import structure due to using self-executive function.

https://codepen.io/vahidbabaveisi/pen/WNJRReJ

— Reply to this email directly, view it on GitHub https://github.com/olton/Metro-UI-CSS/issues/1880, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACZENEP6KUSJBUI7IFJLYLV6MOPHANCNFSM6AAAAAAQNMJYOM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

olton avatar Sep 15 '22 13:09 olton

As I showed in Codepen, it does not work from CDN, I also I tested script tag which did not work

vahidbabaveisi avatar Sep 15 '22 13:09 vahidbabaveisi

any ideas...

vahidbabaveisi avatar Sep 25 '22 04:09 vahidbabaveisi

https://codesandbox.io/p/sandbox/metro4-vite-start-vljhzy?file=%2Fsrc%2Fmain.ts%3A1%2C1

olton avatar Oct 31 '23 07:10 olton