truffle-box/react-box

Problem migrating without first deleting build folder

Closed this issue · 2 comments

I get the following error when running truffle migrate (also with --reset option).

Running migration: 1_initial_migration.js
fs.js:126
    throw err;
    ^

Error: EISDIR: illegal operation on a directory, read
    at Object.fs.readSync (fs.js:614:3)
    at tryReadSync (fs.js:454:20)
    at Object.fs.readFileSync (fs.js:495:19)
    at FS.getContractName (...../.nvm/versions/node/v10.1.0/lib/node_modules/truffle

To solve this I delete the build folder before migrate, but not necessarily the best solution if you have items in your build you'd like to keep (such as old network deploys to different networks).

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale commented

This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if no there is no reply to further comments.