Skip to content
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

Error with soyOptions.outputDirectory for deleting a soy file #745

Closed
teppeis opened this issue Aug 3, 2022 · 0 comments · Fixed by #753
Closed

Error with soyOptions.outputDirectory for deleting a soy file #745

teppeis opened this issue Aug 3, 2022 · 0 comments · Fixed by #753

Comments

@teppeis
Copy link
Member

teppeis commented Aug 3, 2022

Closure Templates requires either soyOptions.outputDirectory or soyOptions.outputPathFormat.
clean:soy and build:soy --watch commands work with outputPathFormat but throw errors for deleting soy files with outputDirectory option.

$ duck clean:soy -n
[18:03:17] Clean up soy.js [started]
[18:03:17] Clean up soy.js [failed]
[18:03:17] → Cannot read properties of undefined (reading 'replace')
TypeError: Cannot read properties of undefined (reading 'replace')
    at Object.cleanSoy (node_modules/@cybozu/duck/lib/commands/cleanSoy.js:17:10)
    at node_modules/@cybozu/duck/lib/cli.js:301:45
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  context: [Object: null prototype] {}
}
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

Successfully merging a pull request may close this issue.

1 participant