Skip to content

Stack overflow exception when using Azure Run from Package feature  #9649

@marcselman

Description

@marcselman

Bug Report

Current Behavior
When using Azure DevOps to deploy to an Azure App Service or Function the default deployment method is Run from Package.
This will simply deploy a zip file with your whole web-app. This zip gets mounted as a read-only wwwroot directory.
The problem is that babel tries to write a cache file in the read-only directory. For some reason this generates a stack exception in the mkdirp.

Expected behavior/code
I expect a warning that tells me the cache file could not be created and caching will not be used.

Current Solution
I have succesfully used the BABEL_CACHE_PATH setting to point to a location outside of the default Azure wwwroot directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Has PRoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: register

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions