ethereum / remix-desktop

Remix IDE desktop
1.02k stars 264 forks source link

White screen on windows 10. #120

Closed LALauw closed 1 year ago

LALauw commented 2 years ago

I can't open Remix IDE on my desktop anymore. All I get is a white screen upon launch and in the dev tools it shows this error: image

I downgraded to 1.3.2 but same issue when on 1.3.3 image

q1n9-jair commented 2 years ago

+1

KostiantynLogunovValtech commented 2 years ago

I have the same issue on the desktop version(( only white screen

nghiemlong commented 2 years ago

Same for new, either latest for penultimate versions. :(. No error, but empty blank screen.

C-m3-Codin commented 2 years ago

FIX

on changing the fetch url in loader the issue can be fixed issue

change the url to
"https://remix.ethereum.org/assets/version.json" or paste this function in the console

OR

fetch('https://remix.ethereum.org/assets/version.json', { cache: "no-store" }).then(response => {
  response.text().then(function (data) {
    const version = JSON.parse(data);
    console.log(`Loading Remix ${version.version}`);
    createScriptTag(`polyfills.${version.version}.${version.timestamp}.js`, 'module');
    if (version.mode === 'development') {
      createScriptTag(`vendor.${version.version}.${version.timestamp}.js`, 'module');
      createScriptTag(`runtime.${version.version}.${version.timestamp}.js`, 'module');
    }
    createScriptTag(`main.${version.version}.${version.timestamp}.js`, 'text/javascript');
  });
});

change

This should fulfill the promise and open up the IDE

snussik commented 2 years ago

@C-m3-Codin

or paste this function in the console...

causes errors.

Use instead:

fetch('https://remix.ethereum.org/assets/version.json', { cache: "no-store" }).then(response => {
  response.text().then(function (data) {
    const version = JSON.parse(data);
    console.log(`Loading Remix ${version.version}`);
    createScriptTag(`polyfills.${version.version}.${version.timestamp}.js`, 'module');
    if (version.mode === 'development') {
      createScriptTag(`vendor.${version.version}.${version.timestamp}.js`, 'module');
      createScriptTag(`runtime.${version.version}.${version.timestamp}.js`, 'module');
    }
    createScriptTag(`main.${version.version}.${version.timestamp}.js`, 'text/javascript');
  });
});
q1n9-jair commented 2 years ago

@C-m3-Codin

或将此功能粘贴到控制台中...

导致错误。

改用:

获取('https://remix.ethereum.org/assets/version.json' , { 缓存:“no-store”  } )。then ( response  =  > { 
  response.text ( ) . then ( function ( data ) { const version = JSON.parse ( data ) ; console.log ( ` Loading Remix $ { version.version } ` _ _ _ _  

    ) ; 
    createScriptTag ( `polyfills. $ { version.version } . $ { version.timestamp } .js` , '  module ' ) ; 
    if  ( version .mode === 'development' ) { createScriptTag  ( `vendor . $ { version.version } . $ { version.timestamp } .js` , ' module ' ) ; createScriptTag  

      ( `runtime. $ { version.version } . $ { version.timestamp } .js` , '  module ' ) ; 
    } 
    createScriptTag (`main. $ { version.version } . $ { version.timestamp } .js` , '  text /javascript' );
  } ) ; 
} ) ;

image It's still useless

nghiemlong commented 2 years ago

Pls tell me where is the loader.js file. I only found Remix IDE\resources\app\node_modules\js-yaml\lib\js-yaml\loader.js

JavaConterry commented 2 years ago

Ctrl+Sift+I paste it into console: where put " ' " sign beside options looks like this Loading Remix ${version.version}

fetch('https://remix.ethereum.org/assets/version.json', { cache: "no-store" }).then(response => { response.text().then(function (data) { const version = JSON.parse(data); console.log(Loading Remix ${version.version});
createScriptTag(polyfills.${version.version}.${version.timestamp}.js, 'module'); if (version.mode === 'development') { createScriptTag(vendor.${version.version}.${version.timestamp}.js, 'module'); createScriptTag(runtime.${version.version}.${version.timestamp}.js, 'module'); } createScriptTag(main.${version.version}.${version.timestamp}.js, 'text/javascript'); }); }); fetch('assets/version.json', { cache: "no-store" }).then(response => { response.text().then(function (data) { const version = JSON.parse(data); console.log(Loading Remix ${version.version}); createScriptTag(polyfills.${version.version}.${version.timestamp}.js, 'module'); if (version.mode === 'development') { createScriptTag(vendor.${version.version}.${version.timestamp}.js, 'module'); createScriptTag(runtime.${version.version}.${version.timestamp}.js, 'module'); } createScriptTag(main.${version.version}.${version.timestamp}.js, 'text/javascript'); }); });

LALauw commented 2 years ago

@C-m3-Codin

or paste this function in the console...

causes errors.

Use instead:

fetch('https://remix.ethereum.org/assets/version.json', { cache: "no-store" }).then(response => {
  response.text().then(function (data) {
    const version = JSON.parse(data);
    console.log(`Loading Remix ${version.version}`);
    createScriptTag(`polyfills.${version.version}.${version.timestamp}.js`, 'module');
    if (version.mode === 'development') {
      createScriptTag(`vendor.${version.version}.${version.timestamp}.js`, 'module');
      createScriptTag(`runtime.${version.version}.${version.timestamp}.js`, 'module');
    }
    createScriptTag(`main.${version.version}.${version.timestamp}.js`, 'text/javascript');
  });
});

This worked perfectly for me, thanks!

q1n9-jair commented 2 years ago

Loading Remix ${version.version}

hello bro Have you solved it?

C-m3-Codin commented 2 years ago
fetch('https://remix.ethereum.org/assets/version.json', { cache: "no-store" }).then(response => {
  response.text().then(function (data) {
    const version = JSON.parse(data);
    console.log(`Loading Remix ${version.version}`);
    createScriptTag(`polyfills.${version.version}.${version.timestamp}.js`, 'module');
    if (version.mode === 'development') {
      createScriptTag(`vendor.${version.version}.${version.timestamp}.js`, 'module');
      createScriptTag(`runtime.${version.version}.${version.timestamp}.js`, 'module');
    }
    createScriptTag(`main.${version.version}.${version.timestamp}.js`, 'text/javascript');
  });
});

press CTRL+SHIFT+I to open console Just past this in the console

cyberkarma commented 2 years ago

zsh: parse error near `}' then i try to run this command on mac terminal

C-m3-Codin commented 2 years ago

not terminal open console from Remix IDE for MAC open Remix COMMAND + OPTIONS + i select console paste the code.

q1n9-jair commented 2 years ago

https://user-images.githubusercontent.com/38864807/163718095-816bd8b6-052c-41df-842d-5454f1ed1041.mp4

Why can't mine?

C-m3-Codin commented 2 years ago

Not in the sources select the

Desktop.2022.04.17.-.22.07.28.04.DVR.mp4 Why can't mine?

Not in the sources select the console tab and do the same .

q1n9-jair commented 2 years ago

Not in the sources select the

Desktop.2022.04.17.-.22.07.28.04.DVR.mp4 Why can't mine?

Not in the sources select the console tab and do the same .

hello Where is that?

C-m3-Codin commented 2 years ago

IMG-20220417-WA0014

q1n9-jair commented 2 years ago

IMG-20220417-WA0014

thank you

Finally ok

cwli24 commented 2 years ago

Nope, tried all these. RIP. image

CodeCmn commented 2 years ago

image

StungInDaBut commented 2 years ago

Running an intel Mac, no solutions here work either

PhantomYdn commented 2 years ago

Same issue. Awaiting Devs. Seems that new version of Chrome broke something for Remix.

kaxaru commented 2 years ago

I wrote a temporary solution in another thread. I hope it helps

let createScriptTag = function(url, type) { var script = document.createElement('script'); script.src = url; script.type = type; document.getElementsByTagName('head')[0].appendChild(script); }

let type = 'text/javascript' let files = [ 'https://remix.ethereum.org/vendors~app.0.23.1.1650320458854.js', 'https://remix.ethereum.org/app.0.23.1.1650320458854.js', 'https://remix.ethereum.org/polyfills.0.23.1.1650320458854.js', 'https://remix.ethereum.org/main.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-abi-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-abstract-provider-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-abstract-signer-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-address-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-base64-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-basex-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-bignumber-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-bytes-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-constants-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-contracts-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-hash-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-hdnode-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-json-wallets-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-keccak256-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-logger-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-networks-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-pbkdf2-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-properties-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-providers-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-random-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-rlp-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-sha2-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-signing-key-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-solidity-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-strings-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-transactions-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-units-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-wallet-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-web-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!-ethersproject-wordlists-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!ethers-lib-ethers-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!ethers-lib-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!web3-bzz-types-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!web3-core-types-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!web3-eth-personal-types-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!web3-eth-types-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!web3-net-types-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!web3-shh-types-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!web3-types-index-d-ts.0.23.1.1650320458854.js', 'https://remix.ethereum.org/raw-loader!web3-utils-types-index-d-ts.0.23.1.1650320458854.js' ]

files.forEach(f => createScriptTag(f, type))

lytves commented 2 years ago

I wrote a temporary solution in another thread. I hope it helps

let createScriptTag = function(url, type) { var script = document.createElement('script'); script.src = url; script.type = type; document.getElementsByTagName('head')[0].appendChild(script); }

......

This helped to me! Thanks a lot!

cwli24 commented 2 years ago

Looks like it was some server-sided script misconfiguration. This issue has been fixed for me naturally, so I guess the problem is resolved? Can anyone else verify the fix?

andrey-sh commented 2 years ago

Looks like it was some server-sided script misconfiguration. This issue has been fixed for me naturally, so I guess the problem is resolved? Can anyone else verify the fix?

On macos seems fixed

pixkk commented 2 years ago

I was helped by installing the previous version, on which everything worked. Then I updated to the latest version.

yann300 commented 1 year ago

The latest release should fix that: https://github.com/ethereum/remix-desktop/releases please reopen if the issue is still persisting