Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Empty folder in migrations directory throws: "Cannot read property 'files'.... #2628

Closed
cgewecke opened this issue Nov 20, 2019 · 2 comments
Closed

Comments

@cgewecke
Copy link
Contributor

Issue

Cross-reporting from solidity-coverage 432. This was fixed for the test directory in #2419 but seems to affect migrations as well.

Without an empty folder staged for quick access in an emergency, it wont be possible to put something in a folder when the need arises (without first creating a folder).

Steps to Reproduce

truffle unbox metacoin
mkdir migrations/emptyfolder
truffle test

Actual Results

Compiling your contracts...
===========================
> Compiling ./contracts/ConvertLib.sol
> Compiling ./contracts/MetaCoin.sol
> Compiling ./contracts/Migrations.sol
> Compiling ./test/TestMetaCoin.sol

Error: TypeError: Cannot read property 'files' of undefined
    at Object.run (/Users/cgewecke/code/sc-forks/migra-bug/node_modules/truffle/build/webpack:/packages/migrate/index.js:92:1)
Truffle v5.1.0 (core: 5.1.0)
Node v10.15.3

Environment

  • Operating System: OSX
  • Ethereum client: ganache
  • Truffle version (truffle version): 5.1.0
  • node version (node --version): 10.15.3
  • npm version (npm --version):
@eggplantzzz
Copy link
Contributor

Thanks @cgewecke, looks like it's time for another quick patch :)

@gnidan
Copy link
Contributor

gnidan commented Nov 27, 2019

I believe this is released in v5.1.1! Closing. Let us know if the problem persists.

@gnidan gnidan closed this as completed Nov 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants