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
Are you sure that cypress allows importing non-cypress node packages from
their configuration files?
Le jeu. 21 sept. 2023 à 15:45, david-ic3 ***@***.***> a
écrit :
We are trying to use the library with Cypress but are getting a strange
typescript error. Any help is appreciated
*cypress.config.ts :*
import {PdfReader} from "pdfreader";
... some code
the import gives this error :
*TS2792: Cannot find module pdfreader . Did you mean to set the
moduleResolution option to nodenext , or to add aliases to the paths
option?*
*tsconfig.json :*
{
"compilerOptions": {
"strict": true,
"target": "es6",
"lib": [
"esnext",
"dom"
],
"types": [
"cypress",
"node",
***@***.***/cypress-drag-drop",
"cypress-real-events"
]
},
"include": [
"**/*.ts"
]
}
—
Reply to this email directly, view it on GitHub
<#142>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB2RJWYFIKMM2VX2X2TJTX3RAHHANCNFSM6AAAAAA5BSRMIE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
We are trying to use the library with Cypress but are getting a strange typescript error. Any help is appreciated
cypress.config.ts :
the import gives this error :
TS2792: Cannot find module pdfreader . Did you mean to set the moduleResolution option to nodenext , or to add aliases to the paths option?
tsconfig.json :
The text was updated successfully, but these errors were encountered: