You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using a custom distribution of pyodide, I am using the indexURL of the loadPyodide settings in a react component which is being compiled using webpack. Part of the code looks like this in the useEffect of the component.
async function hello_python() {
let pyodide = await loadPyodide({
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.24.0/full/",
});
return pyodide.runPythonAsync("1+1");
}
hello_python().then((result) => {
console.log("Python says that 1+1 =", result);
});
The error stays even when I am using my own version of pyodide.
Error
Cannot find module 'https://cdn.jsdelivr.net/pyodide/v0.24.0/full/pyodide.asm.js'
at http://localhost:3000/static/js/bundle.js:81938:11
at async loadScript (http://localhost:3000/static/js/bundle.js:84912:43)
at async loadPyodide (http://localhost:3000/static/js/bundle.js:85242:5)
at async hello_python (http://localhost:3000/static/js/bundle.js:1282:19)
馃悰 Bug
While using a custom distribution of pyodide, I am using the indexURL of the loadPyodide settings in a react component which is being compiled using webpack. Part of the code looks like this in the
useEffect
of the component.The error stays even when I am using my own version of pyodide.
Error
Environment
Additional context
#4419 , #3550
The text was updated successfully, but these errors were encountered: