Error when using @azure/ms-rest-nodeauth
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 9.8k
- Forks
- 326
- PR merge metrics
- No merged PRs in 30d
Description
We updated one of our projects from @zeit/ncc to @vercel/ncc and get a runtime error "TypeError: Cannot read property 'split' of undefined" since then. I could nail it down to a function import from @azure/ms-rest-nodeauth.
The attached file contains a minimal project demonstrating the error. To reproduce it, please execute these commands:
tar xvzf ncc-test.tar.gz
cd ncc-test
npm i
npm run build
node dist/index.js
--> the error message is displayed
When going back to @zeit/ncc, the error doesn't occur anymore:
npm uninstall @vercel/ncc
npm i @zeit/ncc
npm run build
node dist/index.js
--> the expected output "function" is displayed
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Extract ncc-test.tar.gz and run npm i, npm run build, and node dist/index.js to reproduce the error. Compare the @vercel/ncc build with the @zeit/ncc build in the minimal project, then confirm that the @vercel/ncc output runs and prints "function" without the split error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, javascript, node.js
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100