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

Contract development panel error: "TypeError: t is undefined" #4603

Closed
catageek opened this issue Feb 20, 2017 · 9 comments · Fixed by #4860
Closed

Contract development panel error: "TypeError: t is undefined" #4603

catageek opened this issue Feb 20, 2017 · 9 comments · Fixed by #4860
Assignees
Labels
F2-bug 🐞 The client fails to follow expected behavior.

Comments

@catageek
Copy link

As described in title, whenever I open the contract development panel, I got this error on the right panel. The error stays even if I fill the left panel with a correct source code.

Parity version:
Parity//v1.6.0-unstable-5f154b9-20170211/x86_64-linux-gnu/rustc1.14.0-beta.2
Unknown capability

@keorn keorn added M7-ui Z0-unconfirmed 🤔 Issue might be valid, but it’s not yet known. labels Feb 20, 2017
@gavofyork
Copy link
Contributor

almost certainly an error in your solidity code; please paste the minimum code needed for this.

@catageek
Copy link
Author

The error is displayed even when there is no code, as soon as I open the panel, and it stays whatever I type on the left pane.

I am currently trying to rebuild parity but I am stuck with a build error on nanomsg. I will give a feedback when I can build parity.

@catageek
Copy link
Author

So I built parity from scratch with a fresh rustup installation, and I still have the error.

see this capture. This message appears after a brief "loading Solidity version ..."

@derhuerst
Copy link
Contributor

that looks a lot like an error in the UI code. could you post your browser and operating system versions?

@catageek
Copy link
Author

Firefox version ESR 45.7.0
Linux athlon 4.8.6-gentoo-20161106 #5 SMP PREEMPT Sun Nov 6 20:21:14 CET 2016 x86_64 AMD FX(tm)-8350 Eight-Core Processor AuthenticAMD GNU/Linux

@catageek
Copy link
Author

catageek commented Feb 23, 2017

I have also this in the browser console:

[checkUpgrade] available: null version: Object { major: Getter, minor: Getter, patch: Getter, 1 de plus… } consensusCapability: unknown index.beeefb2334.js:6:18439
[lookupAddress] dappreg: 0x724A8602fc0C2b346f8eC56Df2913710742d3fD0 index.beeefb2334.js:6:14280
[lookupAddress] signaturereg: 0x336D7c77B87754fF5c5CF8138605bAAB05B1D9Ba index.beeefb2334.js:6:14280
[lookupAddress] tokenreg: 0x7Ae6d608CD96f5D34eD989211de85d7de1a31585 index.beeefb2334.js:6:14280
[lookupAddress] githubhint: 0xfA29053696C1353a53656a3F15710CD59D08Fce8 index.beeefb2334.js:6:14280
[lookupAddress] badgereg: 0xcF5A62987294fd2087252FD812443508528C52bF index.beeefb2334.js:6:14280
[solidity] evaluating 0.4.9+commit.364da425 index.beeefb2334.js:31:26881
[solidity] compiling... index.beeefb2334.js:31:25969
DappsStore:fetchManifest SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data index.beeefb2334.js:31:21684

@catageek
Copy link
Author

I noticed there is another message that appears a few ms before the other error message when I load the panel:
"SyntaxError: In strict mode code, functions may be declared only at top level or immediately within another function"

@ngotchac
Copy link
Contributor

I can reproduce it on your Firefox version. Not sure how long would a fix take ; in the meanwhile, you might want to upgrade your Firefox version :)

@ngotchac ngotchac added F2-bug 🐞 The client fails to follow expected behavior. and removed Z0-unconfirmed 🤔 Issue might be valid, but it’s not yet known. labels Mar 10, 2017
@ngotchac ngotchac self-assigned this Mar 10, 2017
@ngotchac
Copy link
Contributor

@catageek Please try again on master after #4860 gets merged, or directly on the branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F2-bug 🐞 The client fails to follow expected behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants