pyodide / pyodide/pyodide

Issue when initialising

Open
#5,798 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
14.8k
Forks
1k
Avg merge
20h 29m
Merged PRs (30d)
19

Description

## 🐛 Bug

When I use `indexURL` with the node_modules path for pyodide I get:
```
Error thrown in read:
TypeError [ERR_INVALID_ARG_TYPE]: The "fd" argument must be of type number. Received undefined
```

### Environment

- Pyodide Version: 0.28.0
- Browser version: Node.js
- Any other relevant information:

I'm using it in an AWS Lambda function. The function can also be run locally for debugging.
When running locally, if I don't provide the indeURL path, it tries to load from the wrong folder in my system.
So I point it to the right place (node_modules/pyodide, where the pyodide.js file lives).
It used to work prior to 0.28.0.

### Additional context

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.