# Projectdable error - Uncaught TypeError: e.keyDecoder is not a function

**URL:** <https://forum.canton.network/t/projectdable-error-uncaught-typeerror-e-keydecoder-is-not-a-function/1132>\
**Category:** App Development\
**Created:** [August 28, 2020, 3:55pm UTC](https://forum.canton.network/t/projectdable-error-uncaught-typeerror-e-keydecoder-is-not-a-function/1132 "2020-08-28T15:55:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartcant](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bartcant/32/823_2.png) [@bartcant](https://forum.canton.network/u/bartcant)\
**Post date:** [August 28, 2020, 3:55pm UTC](https://forum.canton.network/t/projectdable-error-uncaught-typeerror-e-keydecoder-is-not-a-function/1132/1 "2020-08-28T15:55:17Z")

</div>

I am experiencing a new issue in projectdable

Any suggestions on what this could be ?

I recently upgraded to SDK 1.4.0 but not sure if this has anything to do with this…

Upon Logon- I get the following console.log output.  
Will try in local environment and see if I get the same problem

Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:SupplyImmunityVC.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Covid19Vaccine.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Covid19Test.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:VaccineAppointment.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:TestAppointment.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:TestRequest.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:AliasCitizen.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:InsuranceCompanyRole.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:StateAgencyRole.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:CitizenRole.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:HealthClinicRole.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:PartyInvitation.  
2.66735d89.chunk.js:2 Registered template 87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Network.  
UserContext.js:114 insidefetch  
UserContext.js:154 roleOperator  
UserContext.js:114 insidefetch  
UserContext.js:154 roleOperator  
2.66735d89.chunk.js:2 mount useStreamQuery(87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Network, …) undefined  
72.66735d89.chunk.js:2 Uncaught TypeError: e.keyDecoder is not a function  
at h (2.66735d89.chunk.js:2)  
at 2.66735d89.chunk.js:2  
at WebSocket.\_ (2.66735d89.chunk.js:2)  
h @ 2.66735d89.chunk.js:2  
(anonymous) @ 2.66735d89.chunk.js:2  
\_ @ 2.66735d89.chunk.js:2

---

<div class="post-metadata">

**Author:** ![bartcant](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bartcant/32/823_2.png) [@bartcant](https://forum.canton.network/u/bartcant)\
**Post date:** [August 28, 2020, 4:24pm UTC](https://forum.canton.network/t/projectdable-error-uncaught-typeerror-e-keydecoder-is-not-a-function/1132/2 "2020-08-28T16:24:33Z")

</div>

Same problem in local environment

mount useStreamQuery(87ff1cf22f79fd836957f5897552577cae58670eb84db487532901cacc94aecf:Main:Network, …) undefined  
44index.js:76 Uncaught TypeError: template.keyDecoder is not a function  
at decodeCreateEvent (index.js:76)  
at decodeEvent (index.js:101)  
at WebSocket.onMessage (index.js:497)  
decodeCreateEvent @ index.js:76  
decodeEvent @ index.js:101  
onMessage @ index.js:497

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [August 28, 2020, 4:34pm UTC](https://forum.canton.network/t/projectdable-error-uncaught-typeerror-e-keydecoder-is-not-a-function/1132/3 "2020-08-28T16:34:19Z")

</div>

Looks like something got out of sync and you ended up with generated code that assumes that the template doesn’t have key when it actually has a key. Did you already try blowing away `node_modules` and friends?

If that doesn’t help, can you share the project?

---

<div class="post-metadata">

**Author:** ![bartcant](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bartcant/32/823_2.png) [@bartcant](https://forum.canton.network/u/bartcant)\
**Post date:** [August 28, 2020, 4:42pm UTC](https://forum.canton.network/t/projectdable-error-uncaught-typeerror-e-keydecoder-is-not-a-function/1132/4 "2020-08-28T16:42:23Z")

</div>

OK. Will rebuild and retry

---

<div class="post-metadata">

**Author:** ![bartcant](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bartcant/32/823_2.png) [@bartcant](https://forum.canton.network/u/bartcant)\
**Post date:** [August 28, 2020, 10:51pm UTC](https://forum.canton.network/t/projectdable-error-uncaught-typeerror-e-keydecoder-is-not-a-function/1132/5 "2020-08-28T22:51:51Z")

</div>

Rebuilt and solved it. Thanks @cocreature
