site-credit path.resolve error fix