omise-node icon indicating copy to clipboard operation
omise-node copied to clipboard

Issue with WebPack

Open zacksiri opened this issue 9 years ago • 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

zacksiri avatar Jan 18 '17 14:01 zacksiri

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

robinclart avatar Jan 18 '17 16:01 robinclart

It seems this is related to this issue: https://github.com/webpack/webpack/issues/965

You need json-loader that you configure like so:

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

Let me know if this fixes it.

robinclart avatar Jan 19 '17 01:01 robinclart

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

wingyplus avatar Jan 13 '18 08:01 wingyplus