stubailo / meteor-rest

:sleeping: simple:rest - make your Meteor app accessible over HTTP and DDP alike
https://atmospherejs.com/simple/rest
MIT License
382 stars 85 forks source link

how to import simple:rest into meteor -angular2 application #110

Open nareshbandameedi opened 8 years ago

nareshbandameedi commented 8 years ago

I am using this below statement to import simple rest

import { SimpleRest } from 'meteor/simple:rest';

but it's saying can't find module.is there any other way please let me know

nebiljabari commented 8 years ago

Obviously Typscript can't find the module but it doesn't mean that your app can't work!

You can dodge this kind of issues by putting your code directly in .js instead of a .ts and/or using eager instead of lasy loading by writing in main.js (client or server side)

Far to be a best practice but until better days comes

important - for eager loading your file(s) should not be in client/imports or server/imports