Skip to content

TypeError: util.isDate is not a function #21

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

Open
Jerry23011 opened this issue Nov 3, 2024 · 0 comments
Open

TypeError: util.isDate is not a function #21

Jerry23011 opened this issue Nov 3, 2024 · 0 comments

Comments

@Jerry23011
Copy link

Jerry23011 commented Nov 3, 2024

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

if (util.isDate(value) === false) {

⠏ 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

sindresorhus/create-dmg#93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant