Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

build error: error[E0432]: unresolved import node_template_runtime #2241

Closed
ghost opened this issue Apr 10, 2019 · 2 comments
Closed

build error: error[E0432]: unresolved import node_template_runtime #2241

ghost opened this issue Apr 10, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 10, 2019

I am getting a build error

I am using this command to build: substrate-node-new substrate-node-template user123

When I just take down the newest source code of substrate it seems to build fine.

   Compiling substrate-node-template-runtime-wasm v1.0.0 (/home/user/substrate-node-template/runtime/wasm)
error[E0432]: unresolved import `node_template_runtime`
 --> src/lib.rs:5:9
  |
5 | pub use node_template_runtime::*;
  |         ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `node_template_runtime`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: Could not compile `substrate-node-template-runtime-wasm`.

To learn more, run the command again with --verbose.
@ghost ghost closed this as completed Apr 10, 2019
@xlc
Copy link
Contributor

xlc commented Apr 10, 2019

Mostly likely caused by paritytech/substrate-up#19
Do a global search & replace node_template_runtime to user123_runtime should fix it

I will make another PR to fix the script

@ghost
Copy link
Author

ghost commented Apr 10, 2019

Thank you @xlc

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant