-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Having an issue using the Prettier plugin for Trunk when using third party prettier plugins such as @ianvs/prettier-plugin-sort-imports. This dependency is specified in my local configuration, in a subdirectory web/node_modules in a monorepo, and I assume Trunk's hermetic prettier doesn't have access to them.
I ask a broader question to the devs here: does/should Trunk support my use case?
Here is the error message:
trunk_cli_version: 1.25.0
title: prettier exited with exit_code=1
report:
- prettier exited with exit_code=1
- linter:
command: |
/Users/max/.cache/trunk/tools/prettier/3.7.4-57ed32e6b8703d9c9e2efe5701d85f5e/node_modules/.bin/prettier -w web/index.html
stdin_path: (none)
run_from: /private/var/folders/cf/53tgrc2j40s2s_mgkps3gs7r0000gn/T/trunk-501/7IJywv/reqwdj
timeout: 10m
rerun: (cd /private/var/folders/cf/53tgrc2j40s2s_mgkps3gs7r0000gn/T/trunk-501/7IJywv/reqwdj; env -i PATH=/Users/max/.cache/trunk/tools/prettier/3.7.4-57ed32e6b8703d9c9e2efe5701d85f5e/node_modules/.bin:/Users/max/.cache/trunk/tools/node/22.16.0-65f9009cde553e96fbe6f826fce8b627/bin:/Users/max/.cache/trunk/tools/node/22.16.0-65f9009cde553e96fbe6f826fce8b627:/opt/homebrew/opt/git/libexec/git-core:/opt/homebrew/sbin:/opt/homebrew/bin:/opt/homebrew/opt/coreutils/libexec/gnubin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/opt/gnu-tar/libexec/gnubin:/opt/homebrew/opt/grep/libexec/gnubin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/gnu-which/libexec/gnubin:/Users/max/.local/bin:/Users/max/Developer/scripts:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/max/.local/share/asdf/shims NODE_PATH=/Users/max/.cache/trunk/tools/prettier/3.7.4-57ed32e6b8703d9c9e2efe5701d85f5e/node_modules HOME=/Users/max /Users/max/.cache/trunk/tools/prettier/3.7.4-57ed32e6b8703d9c9e2efe5701d85f5e/node_modules/.bin/prettier -w web/index.html)
affects_cache:
[]
direct_configs:
[]
exit_status: exited
exit_code: 1
stdout: (none)
stderr: |
[error] Cannot find package '@ianvs/prettier-plugin-sort-imports' imported from /private/var/folders/cf/53tgrc2j40s2s_mgkps3gs7r0000gn/T/trunk-501/7IJywv/reqwdj/noop.js
parser: |
(none)
Metadata
Metadata
Assignees
Labels
No labels