TypeError: util.isDate is not a function
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, node.js
- Domain
- operating-systems
Research direction
Start at lib/encode.js:8 and reproduce the failure with Node.js 23.1.0, using the existing stack trace to follow how appleDate is called. Confirm the date-handling behavior and verify that alias creation works on the reported Node version without breaking supported behavior.
Written by the indexing model from the issue text.
Description
Hi, the error is produced in Node 23 using a package that takes macos-alias as a dependency.
It seems to relate to util.isDate
https://github.com/LinusU/node-alias/blob/fb006c2ad35af646193e8744d7b43ef95c495af6/lib/encode.js#L8
⠏ Making hidden background folder/opt/homebrew/lib/node_modules/create-dmg/node_modules/macos-alias/lib/encode.js:8
if (util.isDate(value) === false) {
^
TypeError: util.isDate is not a function
at appleDate (/opt/homebrew/lib/node_modules/create-dmg/node_modules/macos-alias/lib/encode.js:8:12)
at exports (/opt/homebrew/lib/node_modules/create-dmg/node_modules/macos-alias/lib/encode.js:44:23)
at Object.exports [as create] (/opt/homebrew/lib/node_modules/create-dmg/node_modules/macos-alias/lib/create.js:145:10)
at Helper.write (/opt/homebrew/lib/node_modules/create-dmg/node_modules/ds-store/index.js:50:22)
at Object.fn (/opt/homebrew/lib/node_modules/create-dmg/node_modules/appdmg/lib/appdmg.js:391:8)
at Pipeline._runStep (/opt/homebrew/lib/node_modules/create-dmg/node_modules/appdmg/lib/pipeline.js:46:10)
at Pipeline._run (/opt/homebrew/lib/node_modules/create-dmg/node_modules/appdmg/lib/pipeline.js:94:10)
at next (/opt/homebrew/lib/node_modules/create-dmg/node_modules/appdmg/lib/pipeline.js:35:25)
at /opt/homebrew/lib/node_modules/create-dmg/node_modules/async/lib/async.js:52:16
at done (/opt/homebrew/lib/node_modules/create-dmg/node_modules/async/lib/async.js:246:17)
Node.js v23.1.0
- Dominant language
- JavaScript
- Stars
- 16
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
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.
More from LinusU/node-alias
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
LinusU/node-alias#23 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
LinusU/node-alias#25 ·
-
Assertion Errors Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
LinusU/node-alias#17 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
LinusU/node-alias#14 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinusU/node-alias#13 · 4 comments ·
All issues in LinusU/node-alias
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·