Skip to content

ImportEquals should have a literal source. #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
scholtz opened this issue Apr 18, 2025 · 0 comments
Open

ImportEquals should have a literal source. #159

scholtz opened this issue Apr 18, 2025 · 0 comments

Comments

@scholtz
Copy link

scholtz commented Apr 18, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant