moneybutton / express-paymail

Express implementation for paymail specification.
Other
29 stars 24 forks source link

Failing on buildRoutes Import #11

Open TheBitmonkey opened 4 years ago

TheBitmonkey commented 4 years ago

Hi Guys,

Node newbie here. I am having difficulties getting past the first line of your example. No matter what I have tried.

It does not seem to be set up as a type=module for importing in this style and even after I get passed that it fails to recognise the buildRoutes export (which I can see.)

Any help to get me past this would be awesome. Thanks.

TheBitmonkey commented 4 years ago

const expressPaymail = require('@moneybutton/express-paymail')

and then referencing it as...

const paymailRouter = expressPaymail.buildRouter(BASE_URL, {

I will make a pull request if it helps.

Will.