Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with Truffle 3.0.2 #9

Open
ccomeon opened this issue Feb 2, 2017 · 0 comments
Open

Not working with Truffle 3.0.2 #9

ccomeon opened this issue Feb 2, 2017 · 0 comments

Comments

@ccomeon
Copy link

ccomeon commented Feb 2, 2017

When compiling with webpack, truffle-solidity-loader doesn't recognize Truffle 3.0.2 syntax
Will there be a update for this repo or we need to write the new build process ourselves?

Error message when running webpack dev server:

[TRUFFLE SOLIDITY] Compiling Migrations.sol...
[TRUFFLE SOLIDITY] Compiling SimpleStorage.sol...
[TRUFFLE SOLIDITY] Writing artifacts to ./.truffle-solidity-loader
[TRUFFLE SOLIDITY] COMPILATION FINISHED
[TRUFFLE SOLIDITY] RUNNING MIGRATIONS
[TRUFFLE SOLIDITY] Running migration: 1_initial_migration.js

/dapp/migrations/1_initial_migration.js:1
var Migrations = artifacts.require("./Migrations.sol");
                 ^
ReferenceError: artifacts is not defined
    at /dapp/migrations/1_initial_migration.js:1:18
    at ContextifyScript.Script.runInContext (vm.js:35:29)
    at ContextifyScript.Script.runInNewContext (vm.js:41:15)
    at /dapp/node_modules/truffle/lib/require.js:78:14
    at tryToString (fs.js:455:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant