lwc/tsconfig/tsconfig.js-meta.xml -- Error: Cannot find Lightning Component Bundle tsconfig.

30 views
Skip to first unread message

Lena Razov

unread,
Jul 31, 2025, 1:25:24 AMJul 31
to Illuminated Cloud Q&A
Hi Scott

Could you advise on how to overcome this error I am getting in a metadata project when deploying with ant?

The lwc folder contains tsconfig.json file which is causing the error in ant deployment.

Thank you in advance.

Scott

unread,
Jul 31, 2025, 1:26:29 AMJul 31
to Illuminated Cloud Q&A, Lena Razov

Hi. It sounds like you just need to add it to .forceignore. IC typically does that for you automatically. Perhaps you disabled automatic updates to .forceignore? Anyway, if you just add that file, it won’t be included in the deployment.

Regards,
Scott Wells

Lena Razov

unread,
Jul 31, 2025, 1:40:11 AMJul 31
to Illuminated Cloud Q&A, Scott, Lena Razov
Thank you for the suggestion. Tried - no change, the error persists.

This is what I put in the .forceignore file which resides next to a .gitignore file:
src/lwc/*.json

I thought .forceignore is primarily associated with Salesforce DX CLI commands, but not Ant.

Scott

unread,
Jul 31, 2025, 1:44:50 AMJul 31
to Illuminated Cloud Q&A, Lena Razov, Scott

Ah, this is an Ant-based deployment. Sorry, I overlooked that important fact. You’re correct that Ant does not use .forceignore. I’m not sure if there’s a way to exclude files with those tasks. You may need to add a step to the Ant target to either remove .tsconfig.json or move it out of the way and then restore it. Note that if removed, IC will regenerate it automatically if missing.

Regards,
Scott Wells

Reply all
Reply to author
Forward
0 new messages