简体   繁体   English

IntelliJ Idea + AEM 插件 + TypeScript 编译器问题

[英]IntelliJ Idea + AEM Plugin + TypeScript compiler issue

IntelliJ IDEA 2019, running AEM server as localhost and a filewatcher that transforms .ts files into .js files. IntelliJ IDEA 2019,将 AEM 服务器作为本地主机运行,以及将 .ts 文件转换为 .js 文件的文件观察器。 Whenever a .ts file is saved, filewatcher triggers upload to AEM server so changes take effect, however for some reason, instead of compiling and triggering because of 1 changed file, it logs ALL .ts files as "changed" and tries pushing them onto server, making build time go beyond 20 seconds before finally updating server.每当保存 .ts 文件时,filewatcher 会触发上传到 AEM 服务器以使更改生效,但是由于某种原因,它不会因为 1 个更改的文件而编译和触发,而是将所有 .ts 文件记录为“已更改”并尝试将它们推送到服务器,使构建时间在最终更新服务器之前超过 20 秒。

What might be the cause?可能是什么原因? I've searched every single setting in IntelliJ and nothing seems to be the case, even scoping triggerable files down to opened files.我已经搜索了 IntelliJ 中的每一个设置,但似乎没有任何情况,甚至将可触发文件的范围缩小到打开的文件。

So basically we removed filewatcher at all and used npm i -g typescript files from '/node_modules/, with IntelliJ TS settings set to compile on change & current file only.因此,基本上我们完全删除了 filewatcher 并使用了来自“/node_modules/”的npm i -g typescript文件,并将 IntelliJ TS 设置设置为仅在更改和当前文件时进行编译。 That fixed the issue.这解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM