We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://stackblitz.com/edit/node-r2m8mrnc?file=package.json
What happened
When using nyc and tsx the instumented files cause an error: Cannot read properties of undefined (reading 'startsWith').
nyc
tsx
Cannot read properties of undefined (reading 'startsWith')
I think this line is causing the issue, as modules don't always have an id:
tsx/src/cjs/api/module-extensions.ts
Line 107 in 28a3e7d
How to repoduce
Use stackblitz or manual steps:
npm init -y npm i tsx@4.19.2 nyc@17.1.0 --save-dev --save-exact echo "node-options=--import=tsx" > .npmrc echo "{\"all\": true, \"sourceMap\": true, \"instrument\": true}" > .nycrc.json echo "console.log('hello world')" > dummy.js npx nyc node dummy.js
Screenshots
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Acknowledgements
Minimal reproduction URL
https://stackblitz.com/edit/node-r2m8mrnc?file=package.json
Problem & expected behavior (under 200 words)
What happened
When using
nyc
andtsx
the instumented files cause an error:Cannot read properties of undefined (reading 'startsWith')
.I think this line is causing the issue, as modules don't always have an id:
tsx/src/cjs/api/module-extensions.ts
Line 107 in 28a3e7d
How to repoduce
Use stackblitz or manual steps:
Screenshots
![Image](https://private-user-images.githubusercontent.com/13640166/412532070-5be7966e-8e6a-44de-8530-3d9fe2f509ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2Mzg0MTAsIm5iZiI6MTczOTYzODExMCwicGF0aCI6Ii8xMzY0MDE2Ni80MTI1MzIwNzAtNWJlNzk2NmUtOGU2YS00NGRlLTg1MzAtM2Q5ZmUyZjUwOWNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE2NDgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3MGIxY2I1ZDFmZWI2OTgwN2UzYjcyNjNiNDkyYTBlOWQzMGFlNjE4MTNjYmMzYzdhYzgxOWUwNGVlODkzMGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oO7zX3K79rvzFwySZylpuZCOxleq_qepJ_ulbObfRFY)
![Image](https://private-user-images.githubusercontent.com/13640166/412534019-de70319d-60de-471d-9f6e-bf21225a3270.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2Mzg0MTAsIm5iZiI6MTczOTYzODExMCwicGF0aCI6Ii8xMzY0MDE2Ni80MTI1MzQwMTktZGU3MDMxOWQtNjBkZS00NzFkLTlmNmUtYmYyMTIyNWEzMjcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE2NDgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4Zjc4M2M5ZmIzNTBlNDVhY2RlNjYyNTBiMmE4MmFiZWQzNTZlMWQ0MjU0ZmE5YjBhY2RlYTNjNWMxNzczMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.nSq_y36JDD_vp7YorEsGhYrzMgF4CwouffhqQcBm4C4)
Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project
The text was updated successfully, but these errors were encountered: