Skip to content

Packages not being able to access their own assets at first run of the app that uses them #2606

@tanis2000

Description

@tanis2000

If you use Package._transitional_registerBuildPlugin to run arbitrary code at build time when the package is being deployed inside an app, the first time the handler is being run, the .meteor/local/build folder with the content of the packages is not yet there and the package itself cannot access its own files.

The second time you run meteor, it will work as expected as the files have been copied there at the end of the first run.

If you run meteor reset this happens again as the folder is cleaned up.

Is there a different solution or is it a bug? Is there any workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions