Promact / md2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
http://code.promactinfo.com/md2/
MIT License
379 stars 112 forks source link

Cannot import Md2Module (0.0.28) to Meteor 1.5.1 + Angular4 application #278

Open filosof86 opened 7 years ago

filosof86 commented 7 years ago

Hi guys,

Thank you for your work. It's really great. However, unfortunately, it refuses to work with Angular4 + Meteor platform.

I'm trying to import it like it was mentioned in your docs:

===== import { Md2Module } from 'md2'; @NgModule({ imports: [ ..., Md2Module, ], ... }) export class AppModule { }

However, I keep getting the following errors in console:

Uncaught SyntaxError: Unexpected token export Uncaught TypeError: Cannot read property 'meteorInstall' of undefined

The browser debug console states the error is the following string

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // // node_modules/md2/index.js // // // ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ---->>>> export from './core'; // 1 export from './module'; // 2 export from './accordion/index'; // 3 export from './autocomplete/index'; // 4 ......

MD2 version: "md2@0.0.28"

Meteor version: meteor@1.5.1

It seems the similar issue has already been discussed within the scope of #27

Could you please help me here? Thank you in advance.