Dark Clouds Full Moon

Other than I am happy the storm has passed and stuff is getting back to normal…not that normal’s all that good…it’s not…but it’s quieter and that, to me, right now, is better… The first few days of…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Import Node Modules the Ember Way

If you guys are like me, a complete noob at Ember (I’ve just picked it up and have been working on it for a month now for a new project at work), you might have ran into an issue trying to import node modules.

As JavaScript and Node.js developers, we are used to the normal way of importing node modules with using

For example, if you try to import a module like this:

your app won’t compile and you’ll get an error saying

For us to import node modules like how we are used to, we first have to install it using your favorite package manager (mine is npm for now) like we always do, then install ember-browserify.

then, instead of importing it like this

we just have to change it to

and voila! Our code will now compile and be used as expected.

Add a comment

Related posts:

drugs

then also 35 million of us are addicted to this white poision. we all can stop this but we aren’t ready to quit it. They are just destroying there lives and hurting there loved ones. Most of us are…

Retail Hacking

How excited is for a developer to be able to build something from scratch quickly? And for a designer to think in a featureAnd how often is it possible in the day-by-day jobs? We can build great…

Extracting the IPA File and Local Data Storage of an iOS Application

This article explains the process for extracting the IPA and Local Data Storage of an iOS application from an iPhone/iPad to physical disk on your computer. After going through the write-up, you will…