rxjs EISDIR: illegal operation on a directory, read
See original GitHub issue⚠️ IMPORTANT ⚠️ Please do not ignore this template. If you do, your issue will be closed immediately.
- Read the docs.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
Describe the bug
rxjs EISDIR: illegal operation on a directory, read
A clear and concise description of what the bug is. importing rxjs and use it cause EISDIR: illegal operation on a directory, read
Reproduction
- yarn add rxjs tslib vite
- create index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script type="module" src="./index.ts"></script>
</body>
</html>
- create
index.ts
import { of } from 'rxjs'
of([ 'Hello' ])
.subscribe(data => console.log(data))
Please provide a link to a repo that can reproduce the problem you ran into. Please see Steps above.
A reproduction is required unless you are absolutely sure that the the problem is obvious and the information you provided is enough for us to understand what the problem is. If a report has only vague description (e.g. just a generic error message) and has no reproduction, it will receive “need reproduction” label. If no reproduction is provided after 3 days, it will be auto-closed.
System Info
vite
version:2.0.5
- Operating System: MacOS
- Node version: 14
- Package manager (npm/yarn/pnpm) and version: yarn 1.22.4
Logs (Optional if provided reproduction)
- Run
vite
orvite build
with the--debug
flag. - Provide the error log here. io
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top GitHub Comments
I got the same bug, really annoying
I have another issue with Rx via esm