Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin breaks when trying to compile contracts using HTTP import directive #1

Open
fmorisan opened this issue Apr 26, 2021 · 0 comments

Comments

@fmorisan
Copy link

fmorisan commented Apr 26, 2021

I've identified an issue where the plugin stops working whenever the contract to compile has a GitHub dependency.

Reproduction steps:

  • Load the Celo plugin in Remix
  • Create a new file
  • Add the following content to the file: import "https://github.com/smartcontractkit/chainlink/blob/develop/evm-contracts/src/v0.4/LinkToken.sol";
  • Try to compile from the Celo Plugin UI
  • You should see the effects

Additional data - console output

react-dom.production.min.js:216 TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at fe (Compiler.tsx:170)
    at ro (react-dom.production.min.js:157)
    at Vs (react-dom.production.min.js:267)
    at Eu (react-dom.production.min.js:250)
    at Mu (react-dom.production.min.js:250)
    at xu (react-dom.production.min.js:250)
    at bu (react-dom.production.min.js:243)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:18)
ss @ react-dom.production.min.js:216
n.callback @ react-dom.production.min.js:216
da @ react-dom.production.min.js:131
hs @ react-dom.production.min.js:220
Cu @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
Hi @ react-dom.production.min.js:122
Nu @ react-dom.production.min.js:252
bu @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Hi @ react-dom.production.min.js:122
qi @ react-dom.production.min.js:123
Vi @ react-dom.production.min.js:122
du @ react-dom.production.min.js:237
ko @ react-dom.production.min.js:170
(anonymous) @ Compiler.tsx:75
s.emit @ events.js:153
(anonymous) @ connector.ts:60
l @ runtime.js:63
(anonymous) @ runtime.js:293
(anonymous) @ runtime.js:118
(anonymous) @ tslib.es6.js:74
l @ tslib.es6.js:70
(anonymous) @ connector.ts:38
(anonymous) @ connector.ts:46
l @ runtime.js:63
(anonymous) @ runtime.js:293
(anonymous) @ runtime.js:118
o @ tslib.es6.js:71
Promise.then (async)
u @ tslib.es6.js:73
(anonymous) @ tslib.es6.js:74
l @ tslib.es6.js:70
(anonymous) @ connector.ts:35
connector.ts:83 TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at fe (Compiler.tsx:170)
    at ro (react-dom.production.min.js:157)
    at Vs (react-dom.production.min.js:267)
    at Eu (react-dom.production.min.js:250)
    at Mu (react-dom.production.min.js:250)
    at xu (react-dom.production.min.js:250)
    at bu (react-dom.production.min.js:243)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:18)
(anonymous) @ connector.ts:83
l @ runtime.js:63
(anonymous) @ runtime.js:293
(anonymous) @ runtime.js:118
(anonymous) @ tslib.es6.js:74
l @ tslib.es6.js:70
(anonymous) @ connector.ts:38
(anonymous) @ connector.ts:46
l @ runtime.js:63
(anonymous) @ runtime.js:293
(anonymous) @ runtime.js:118
o @ tslib.es6.js:71
Promise.then (async)
u @ tslib.es6.js:73
(anonymous) @ tslib.es6.js:74
l @ tslib.es6.js:70
(anonymous) @ connector.ts:35

Screenshot:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant