function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RSuzukiRSuzuki 

LWC1001: Unexpected compilation error: Cannot read property 'declarations' of null

I have an AppExchange package I've built that I'm trying to install into an org. I have been able to successfully install this package in multiple orgs, but for one particular org, I get this error message:
LWC1001: Unexpected compilation error: /home/sfdc/tools/lwc/2.2.9-234.3/compList.js: Cannot read property 'declarations' of null, Details: markup://fileforcem1:compList.js: LWC1001: Unexpected compilation error: /home/sfdc/tools/lwc/2.2.9-234.3/compList.js: Cannot read property 'declarations' of null
I can't seem to find any documentation regarding this. Any help would be much appreciated!


 
SwethaSwetha (Salesforce Developers) 
HI,
Have you ensured you are using the correct imports?

Related: https://salesforce.stackexchange.com/questions/336768/unexpected-compilation-error-cannot-read-property-type-of-null

Thanks