Closed okwme closed 4 years ago
Hi @okwme , thanks for submitting this issue. The tutorial and template are indeed a little bit outdated right now, I submitted patches (#200 and https://github.com/aragon/your-first-aragon-app/pull/11) to fix this. Basically, there are 3 things that need to be changed:
@aragon/cli
dependency needs to be upgraded to the latest version. aragon ipfs install
to install and setup IFS the first time you use the CLI.manifest.json
file should now be:
{
"name": "Counter",
"description": "My first Aragon app",
"script": "/script.js",
"start_url": "/index.html"
}
(no more /dist/
)
Hope this will fix your problems 🙂
thank you!!!
Hello, I recently went through the tutorial here: https://hack.aragon.org/docs/tutorial.html and ran into a few issues along the way. I'm running Ubuntu 18 which I've found to be the root of similar errors in the past but didn't investigate too deeply. I found ways to get around all of the errors but thought you might want to investigate them for a tutorial flow that doesn't involve troubleshooting.
The first one occurred with the command
npx create-aragon-app foo.aragonpm.eth tutorial
. I received the error that thearagon
command was missing. To fix this I installed it globally usingnpm install -g @aragon/cli
. The command worked afterwards.The second error I encountered was with the command
npx aragon run --files dist
. The error I received was:Cannot find the ipfs dependency. Has this module installed correctly?
. I tried running the command likearagon run --files dist
since I previously installed the aragon command globally and I received no error.The third error I received occurred within the app after I launched the test demo as follows:
aragon run --files dist
. I get all the checkmarks as so:However, when I visit the app in the browser I receive this error on the screen:
If i go to the referenced IPFS file directly like
http://localhost:8080/ipfs/QmYevZ8qGZ2CX292atjX847T7Y2y5ePpLEVREa1pV1b8zB/dist/index.html
I see the same error. However, if I remove the file path and just visithttp://localhost:8080/ipfs/QmYevZ8qGZ2CX292atjX847T7Y2y5ePpLEVREa1pV1b8zB/
I am presented with theindex.html
file fully rendered.When I run the app without the
dist
flag like:aragon run
I am presented with a properly rendered demo app. However, in the console are the following errors:With regard to the final configuration with the buld scripts split into two, the first command
npm run start:app
seems to work. However the second one,npm run start:aragon:http
throws the error:When I remove the
npx
from the beginning of the command like earlier I get this error:Not sure if the tutorial is just out of date or if there is anything relevant to the way Ubuntu references NPM packages that would result in this behavior but thought you'd like to know. Thanks for an otherwise pleasant tutorial : )