Skip to content

ImportEquals should have a literal source. #159

Open
@scholtz

Description

@scholtz

Subject of the issue

when i try to create npm lib from generated client i receive error Error: ImportEquals should have a literal source.

error is in line "import SimulateResponse = modelsv2.SimulateResponse;"

when i remove the line and reference the simulate endpoints directly from algosdk lib it works

  simulate(): Promise<GasStationComposerResults<TReturns> & { simulateResponse: SimulateResponse }>
  simulate(options: SkipSignaturesSimulateOptions): Promise<GasStationComposerResults<TReturns> & { simulateResponse: SimulateResponse }>
  simulate(options: RawSimulateOptions): Promise<GasStationComposerResults<TReturns> & { simulateResponse: SimulateResponse }>

to


  simulate(): Promise<GasStationComposerResults<TReturns> & { simulateResponse: modelsv2.SimulateResponse }>
  simulate(options: SkipSignaturesSimulateOptions): Promise<GasStationComposerResults<TReturns> & { simulateResponse: modelsv2.SimulateResponse }>
  simulate(options: RawSimulateOptions): Promise<GasStationComposerResults<TReturns> & { simulateResponse: modelsv2.SimulateResponse }>

Your environment

windows

Steps to reproduce

  1. create smart contract
  2. generate client
  3. use tsup to build npm package

Expected behaviour

Image

Actual behaviour

Image

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