Community forum for knowledge and support

Updated 2 months ago

Identifying Improperly Ordered and Access-Denied Components in a Component Repository

At a glance

The community member explains that using a simple grep command in the component repository can show the components that do not have a default export, which are the "access denied ones". They also mention that they found the "improperly ordered ones" when they bulk imported the components and attempted to create a barrel file, which resulted in the IDE throwing errors related to the file paths not matching the numbering of the exported constants from the files. This issue was caused by the community member numbering the file names based on the URL path, which should have matched the exported constant but did not.

if you go in the component repo and use a simple grep command to search for all components that do not have a default export, it will show the access denied ones. as for the improperly ordered ones, I only found those out when I bulk imported the components and attempted to create a barrel file, the IDE threw errors related to the filepaths since they didn't match the numbering of the exported constant from the file. this flagged since I was numbering the file names off the url path which should've matched the constant but didn't.

Add a reply
Sign up and join the conversation on Slack