opsgenie/opsgenie-nodejs-sdk

Unable to require ../package in configure.js

Closed this issue · 1 comments

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.

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