I'm using Angular 2, with TypeScript, Webpack and all that on my main projects, so every time I have to go back to a Truffle project using AngularJS 1.x, a kitten dies and my head hurts a little.

How would you integrate an Angular 2 CLI frontend project with a Truffle 2 project?


1 Answer 1


I never use truffle 2, but this may help if you go to my project that I inegrate Angular 2 and truffle 3 together at https://github.com/Ratimon/MyDWallet. After you npm install, It is important to go to

node_modules/ethjs-abi/internals/webpack/webpack.config.js: and node_modules/ethjs-util/internals/webpack/webpack.config.js:

then change from loader: 'json' to loader: 'json-loader'

  • That's interesting. Why do you have to do this modification in NPM modules directly? Not a very good solution given that these should be constant files.
    – Sebastien
    Commented Mar 29, 2017 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.