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
Forcibly stop. The following error message is displayed.
/Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:9489
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof opts.cwd}\``);
^
TypeError: Expected `cwd` to be of type `string` but received type `undefined`
at module.exports.sync (/Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:9489:9)
at globDirs (/Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:17316:9)
at getPattern (/Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:17319:64)
at globTasks.reduce (/Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:17365:19)
at Array.reduce (<anonymous>)
at Function.module.exports.sync (/Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:17364:26)
at Object.<anonymous> (/Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:72:28)
at c (/Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:36190:3584)
at Function.r.import (/Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:36190:4190)
at /Users/hoge/.nvm/versions/node/v8.11.1/lib/node_modules/imageoptim-cli/dist/imageoptim:36187:15
Version Numbers or N/A
N/A
Help Needed
The text was updated successfully, but these errors were encountered:
Thanks @azusa-tomita,
I've had this issue on a few projects – it needs an update to the globby dependency to fix it. I will release an update when I get some time, hopefully later today or tomorrow. In the meantime these steps should fix it for you.
Steps To Reproduce The Error
Expected Behaviour
imageOptim.app will work and compress the image.
Actual Behaviour
Forcibly stop. The following error message is displayed.
Version Numbers or N/A
N/A
Help Needed
The text was updated successfully, but these errors were encountered: