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

TypeError: Cannot redefine property: default #1822

Open
tobiasdiez opened this issue Sep 24, 2023 · 0 comments
Open

TypeError: Cannot redefine property: default #1822

tobiasdiez opened this issue Sep 24, 2023 · 0 comments

Comments

@tobiasdiez
Copy link

Sometimes (sadly not very reproducible) I get the following error:

TypeError: Cannot redefine property: default

node_modules/ioredis/built/index.js:6:8
      4| exports = module.exports = require("./Redis").default;
      5| var Redis_1 = require("./Redis");
      6| Object.defineProperty(exports, "default", { enumerable: true, get: fun…
       |        ^
``̀ 
This mostly happens when testing with vitest and only seems to occur if ioredis is imported in multiple locations
tobiasdiez added a commit to JabRef/JabRefOnline that referenced this issue Sep 24, 2023
- Once redis/ioredis#1822 is fixed, remove
patch to ioredis
- Once Azure/azure-functions-host#162 is
fixed, remove patch to nitro that wraps console log.
- Once unjs/nitro#1753 is merged and released,
remove corresponding patch to nitro
- Once lucia-auth/lucia#1153 is fixed, rename
models/fields in prisma
- Once lucia-auth/lucia#1155 is merged and
released, remove custom h3 lucia middleware
- Once lucia-auth/lucia#1074 is fixed, remove
lucia types shims
- Enable CSRF protection in lucia (but then login doesn't work
anymore...)
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