CUSTOM_TYPES from `src/config/common.json` are ignored
See original GitHub issueAfter adding a new type to my pallet and changing common.json
to look like:
{
"APP_NAME": "substrate-front-end-tutorial",
"DEVELOPMENT_KEYRING": true,
"RPC": {},
"CUSTOM_TYPES": {
"SomeTypeX": "u64"
}
}
I get Cannot construct unknown type SomeTypeX
.
If I place it in src/config/development.json
instead, the frontend loads just fine.
(I use yarn start
for a dev environment)
Is this expected behaviour? I would have thought that common.json serves all environments.
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
integritee-network/crowdloan - GitHub
When writing and deploying your own front end, you should configure: Custom types as JSON in src/config/types.json . See Extending types. PROVIDER_SOCKET in ......
Read more >REACT 17 DESIGN PATTERNS AND BEST ... - EBIN.PUB
You can define custom scalar types as we did with UUID, Datetime, and JSON, and you can also define custom types such as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for taking the time to check it. I modified the node template though, I’ll try to publish my fork later so you can see what I was doing exactly.
closing issue due to inactivity, if issue continues, please follow up with new issue @mmagician