You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Fréderic Cox <co...@gmail.com> on 2016/06/13 15:52:18 UTC

A file found in a source-path must have an externally visible definition library error

Hi,

I have a library project in Flash Builder that is (sometimes) generating
this error when compiling:

If a definition in the file is meant to be externally visible, please put
the definition in a package. ProductPhotosManager.mxml
/CFShopManagerLibrary/src/components Unknown Flex Problem

If I then do a clean project it will sometimes disappear but not always.
It's driving me crazy. Can anyone tell me what this error means?

The components.ProductPhotosManager contains some imports to a SWC of an
ANE because otherwise the projects using this library can not use the ANE.
Could it be related to that?

I am using Flex 4.15.0

My .flexLibProperties looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<flexLibProperties includeAllClasses="true" useMultiPlatformConfig="false"
version="3">

  <includeClasses>

    <classEntry path="ShopManager"/>

    <classEntry path="components.ProductPhotoDetail"/>

    <classEntry path="components.ProductPhotosManager"/>

    <classEntry path="skins.CustomTextAreaSkin"/>

    <classEntry path="views.ShopDashboardView"/>

    <classEntry path="views.ShopDiscountSettingsView"/>

    <classEntry path="views.ShopProductDetailsView"/>

    <classEntry path="views.ShopProductsOverviewView"/>

    <classEntry path="components.ShopCategoriesManager"/>

  </includeClasses>

  <includeResources>

    <resourceEntry destPath="defaults.css" sourcePath="defaults.css"/>

    <resourceEntry destPath="helvetica-neue-lt-std-33-thin-extended.otf"
sourcePath="helvetica-neue-lt-std-33-thin-extended.otf"/>

    <resourceEntry destPath="HelveticaNeueLTStd-Md.otf"
sourcePath="HelveticaNeueLTStd-Md.otf"/>

  </includeResources>

  <namespaceManifests/>

</flexLibProperties>


Thanks for any help you can give me!

Re: A file found in a source-path must have an externally visible definition library error

Posted by Fréderic Cox <co...@gmail.com>.
Oh and there is nothing defined in the source path settings for this
library (previously it was but not anymore now)

On Mon, Jun 13, 2016 at 5:52 PM, Fréderic Cox <co...@gmail.com> wrote:

> Hi,
>
> I have a library project in Flash Builder that is (sometimes) generating
> this error when compiling:
>
> If a definition in the file is meant to be externally visible, please put
> the definition in a package. ProductPhotosManager.mxml
> /CFShopManagerLibrary/src/components Unknown Flex Problem
>
> If I then do a clean project it will sometimes disappear but not always.
> It's driving me crazy. Can anyone tell me what this error means?
>
> The components.ProductPhotosManager contains some imports to a SWC of an
> ANE because otherwise the projects using this library can not use the ANE.
> Could it be related to that?
>
> I am using Flex 4.15.0
>
> My .flexLibProperties looks like this:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
>
> <flexLibProperties includeAllClasses="true" useMultiPlatformConfig="false"
> version="3">
>
>   <includeClasses>
>
>     <classEntry path="ShopManager"/>
>
>     <classEntry path="components.ProductPhotoDetail"/>
>
>     <classEntry path="components.ProductPhotosManager"/>
>
>     <classEntry path="skins.CustomTextAreaSkin"/>
>
>     <classEntry path="views.ShopDashboardView"/>
>
>     <classEntry path="views.ShopDiscountSettingsView"/>
>
>     <classEntry path="views.ShopProductDetailsView"/>
>
>     <classEntry path="views.ShopProductsOverviewView"/>
>
>     <classEntry path="components.ShopCategoriesManager"/>
>
>   </includeClasses>
>
>   <includeResources>
>
>     <resourceEntry destPath="defaults.css" sourcePath="defaults.css"/>
>
>     <resourceEntry destPath="helvetica-neue-lt-std-33-thin-extended.otf"
> sourcePath="helvetica-neue-lt-std-33-thin-extended.otf"/>
>
>     <resourceEntry destPath="HelveticaNeueLTStd-Md.otf"
> sourcePath="HelveticaNeueLTStd-Md.otf"/>
>
>   </includeResources>
>
>   <namespaceManifests/>
>
> </flexLibProperties>
>
>
> Thanks for any help you can give me!
>