Skip to content

Emulator cannot read juno.config with import external files #262

@peterpeterparker

Description

@peterpeterparker

Motivation

@AntonioVentilii had an issue with deploying Sputnik serverless functions. We figured out the root cause was the emulator not being able to read the juno.config because the module was importing some constants from another file (e.g. import * from src/constants.ts) which is not visible for the emulator.

At some point we should likely review the approach use endpoints to configure the emulator though, as I tested earlier last year, it becomes quite verbose.

See junobuild/cli#377 (comment)

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