-
Notifications
You must be signed in to change notification settings - Fork 4
Java script error occured in Ubuntu 16.04 LTS. #1
Comments
Hi, is it possible that you haven't created an .eslintrc and .babelrc file yet in the root folder of the project? I ran into similar problems because these two files are missing from the repository. .babelrc {
"presets": ["es2015", "stage-2"],
"plugins": ["transform-runtime"],
"comments": false
} .eslintrc.js module.exports = {
root: true,
parserOptions: {
sourceType: 'module'
},
// required to lint *.vue files
plugins: [
'html',
'standard',
'promise'
],
// add your custom rules here
'rules': {
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
} |
Does it work if those two files are added? |
Thank you.
I have not src/iroha.js. Please tell me Where it is. |
You can get the iroha.js file from the following repository https://github.com/hyperledger/iroha-javascript Currently the path to the iroha.js file is still hardcoded to ../../../src/iroha.js. For the time being just change the path to the file. I guess the iroha-javascript repository will soon turn into a downloadable npm package. |
Thank you for reply.
|
That is strange. Supercop is an npm package and is defined as a dependency in the package.json file.
It should be available in your node_modules folder after running npm update or npm install. |
Thank you.
|
Hello. Where can I setup system network.
|
Hi, The IROHA_URL is set at https://github.com/soramitsu/iroha-demo-javascript/blob/master/build/webpack.dev.conf.js#L22 However, currently due to this problem hyperledger-iroha/iroha#181 it is possible that you will not be able to access the API. Depending on what browser you are using. If you are getting 405 errors then I suggest trying to test, for the time being, the code in Google Chrome with the following extention installed: allow cors |
Hello. I input username and push Createuser button on Top page.
My step 3 is wrong? |
I will take a look at this. Maybe an API mismatch problem. |
Thank you very much for your help. |
Next week I will try to work on a working demo application. Currently there seem to be a lot of issues due to API changes etc As far as your error is concerned, the cause is the API address that is being used in the demo application. All paths are defined as /api/v1/account but the REST API in the iroha master and develop branch is defined as /account ... So when you replace all /api/v1 occurences in the code with EMPTY then you will get past your error. However after passing that step more problems arise. I suggest to be patient a bit and wait until a new version of the demo application is available or take a look in https://github.com/hyperledger/iroha/blob/develop/core/infra/server/http_server_with_cappuccino.cpp and match the api addresses yourself for the time being. |
Thank you for your help. |
Hello.
I tryed to run iroha-demo-javascript on Ubuntu 16.04 LTS, but I can't.
1)npm install
2)npm run dev
--->Firebox startup and display white page.
Java Script error occured.
Please tell me, What is wrong.
The text was updated successfully, but these errors were encountered: