omise/omise-node

Issue with WebPack

Closed this issue · 3 comments

I'm trying to use the omise-node library with webpack to tokenize a card, this is what i'm getting

screen shot 2560-01-18 at 9 14 19 pm

Hi @zacksiri we're looking at it. We'll report back once we find a fix.

It seems this is related to this issue: webpack/webpack#965

You need json-loader that you configure like so:

  preLoaders: [
    { test: /\.json$/, loader: 'json'},
  ],

Let me know if this fixes it.

@zacksiri Why you use webpack with omise-node library?