opsgenie / opsgenie-nodejs-sdk

OpsGenie Node.js SDK
https://www.opsgenie.com/docs/api-and-client-libraries/opsgenie-nodejs-api
Apache License 2.0
25 stars 19 forks source link

Unable to require ../package in configure.js #12

Closed Mikejonesab12 closed 6 years ago

Mikejonesab12 commented 6 years ago

I am on Node 8.9.4. I have received the following error:

Cannot find module '../package' from 'configure.js'

I believe the issue is related to trying to require package without the .json extension. When I changed require('../package') to require('../package.json') in lib/configure.js the issue was resolved.

Might be related to the newer version of Node.

brksfsrt commented 6 years ago

Extensions of required files have been added. The issue must be resolved in version 0.4.3.