-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Cannot find module 'cbor-x/index-no-eval' or its corresponding type declarations. #513
Comments
I have the same issue.
Not sure if this is related, but for some reason the default export no longer works for me. Instead of
I have to use
We are running Typescript in version 5.3.3. I removed the node_modules folder and installed all dependencies again, but the package doesn't seam to be installed.
|
Here is my tsconfig.json : {
"compilerOptions": {
"target": "es2021",
"module": "commonjs",
"esModuleInterop": true,
"noImplicitAny": true,
"outDir": "./built",
"sourceMap": true,
"inlineSources": true,
"sourceRoot": "/",
"noEmitHelpers": true,
"importHelpers": true,
"resolveJsonModule": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true
},
"types": ["jest", "jest-extended"],
"exclude": ["node_modules"],
"include": [
"apps/**/*.ts",
"graphql/**/*.ts",
"graphql/*.d.ts",
"mailers/**/*.ts",
"scripts/**/*.ts",
"ecosystem.json"
]
} This still happens with @simplewebauthn/[email protected] and @simplewebauthn/[email protected]. |
Isn't @simplewebauthn/* installed in node_modules? |
No, wait a minute, it's not that - Investigating... |
I created kriszyp/cbor-x#100 over in the cbor-x project because I discovered that locally duplicating their index.d.ts as index-no-eval.d.ts in my example project here's node_modules/cbor-x/ folder allowed |
Okay, enough people are affected by this I think I'll have to revert #511 and figure something else out. The cbor-x project looks like it's being actively maintained, but there's evidence they may not have a lot of time to dedicate to addressing issues. I'll have to break Vercel's Edge runtime support for sake of restoring Node support, but my gut tells me there are more people in the latter group than the former. |
I'm proposing fixing this issue by replacing use of cbor-x another library, tiny-cbor. @mat813 @sualko @mmv08 if you're feeling daring enough you can trying building and installing from the fix/513-cbor-x-type-issues branch to see if this fixes your issues. In my testing I think this is the solution, but extra confirmation couldn't hurt. |
@mat813 @sualko @mmv08 This issue should be fixed in the newly published @simplewebauthn/[email protected] |
Describe the issue
With 9.0.1, I get:
Reproduction Steps
Expected behavior
Not get a build error ?
Dependencies
SimpleWebAuthn Libraries
Server and types at 9.0.1
The text was updated successfully, but these errors were encountered: