error about missing package.json file is thrown righ before build methods are called