Post Publish Hook can't import file

My post publish hook file works fine but if I try to import other information in to it preceding module.exports I get:

Unable to load postPublishHook: './hooks/postPublish'. The module does not export a function.

import config from './config.js';
module.exports = (options) => {

But the module does export a function? Somehow the import statement is cancelling everything out.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.