paritytech / substrate-up

Scripts for working with new Substrate projects
Apache License 2.0
67 stars 21 forks source link

error: no rules expected the token LightService #6

Closed ltfschoen closed 5 years ago

ltfschoen commented 5 years ago

I just tried creating a node but I got error error: no rules expected the token LightService. I have not updating substrate, so that may be the reason why the error is occurring, but perhaps it's worth reminding the user to try upgrading by running curl https://getsubstrate.io -sSf | sh again if they encounter errors.

   ...

   Compiling substrate-consensus-aura v0.1.0 (https://github.com/paritytech/substrate#3a8a3925)                                                                                               
   Compiling substrate-cli v0.3.0 (https://github.com/paritytech/substrate#3a8a3925)                                                                                                          
error: no rules expected the token `LightService`                                                                                                                                             
  --> src/service.rs:71:3                                                                                                                                                                     
   |                                                                                                                                                                                          
71 |         LightService = LightComponents<Self>                                                                                                                                             
   |         ^^^^^^^^^^^^                                                                                                                                                                     

error: aborting due to previous error                                                                                                                                                         

error: Could not compile `my-substrate-node-template-1`.                                                                                                                                      

To learn more, run the command again with --verbose.
Chain client created in my-substrate-node-template-1.
To start a dev chain, run:
$ my-substrate-node-template-1/target/release/my-substrate-node-template-1 --dev
To create a basic Bonds UI for your chain, run:
$ substrate-ui-new my-substrate-node-template-1
To push to a newly created GitHub repository, inside my-substrate-node-template-1, run:
$ git remote add origin git@github.com:myusername/myprojectname && git push -u origin master

I am using this substrate version that I download a couple of days ago

$ substrate --version
substrate 0.1.0-25641b62-x86_64-macos
ltfschoen commented 5 years ago

Closing as I'm not encountering the error anymore when I run the following after getting latest version:

./target/release/my-substrate-node-template-2 --version
my-substrate-node-template-2 0.9.0-1ec3a34-x86_64-macos