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
The plugin does not seem to be invoked, and no logging output from the plugin is observed during the compilation.
🙂 Expected behavior
The plugin should trigger during the compilation process, and the logging statement ("[tsserver-plugin]: called!") should appear in the logs.
Additional information about the issue
The tsconfig plugin does not trigger or function as expected when running the tsc (TypeScript Compiler) command. Despite being correctly configured in tsconfig.json and implemented as a tsserver plugin, the expected behavior or logging from the plugin does not occur during compilation.
Steps to Reproduce
Configure tsconfig.json to include the plugin as shown above.
Implement the plugin to log an informational message when called.
Run tsc in the project directory to compile the code.
The text was updated successfully, but these errors were encountered:
This is working as intended and documented on the wiki:
Plugins can't add new language features such as new syntax or different typechecking behavior, and plugins aren't loaded during normal commandline typechecking or emitting, (so are not loaded by tsc).
There is no way to do this besides wrapping TS's API or using package like ts-patch.
FWIW I would really question the need for any use of paths today; have you considered using package.json import maps? Why do you need a plugin to do this? This seems like an "XY problem" to me; you're asking for a specific solution but not describing the problem you're trying to solve.
🔎 Search Terms
"tsconfig plugin" "tsc"
🕗 Version & Regression Information
⏯ Playground Link
No response
💻 Code
tsconfig.json
:tsserver-plugin
:🙁 Actual behavior
The plugin does not seem to be invoked, and no logging output from the plugin is observed during the compilation.
🙂 Expected behavior
The plugin should trigger during the compilation process, and the logging statement (
"[tsserver-plugin]: called!"
) should appear in the logs.Additional information about the issue
The
tsconfig
plugin does not trigger or function as expected when running thetsc
(TypeScript Compiler) command. Despite being correctly configured intsconfig.json
and implemented as atsserver
plugin, the expected behavior or logging from the plugin does not occur during compilation.Steps to Reproduce
tsconfig.json
to include the plugin as shown above.tsc
in the project directory to compile the code.The text was updated successfully, but these errors were encountered: