Skip to content
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

v0.3.0-alpha.16 inoperable with likely RegExp bug affecting imports #191

Closed
ph0ph0 opened this issue Sep 29, 2022 · 6 comments
Closed

v0.3.0-alpha.16 inoperable with likely RegExp bug affecting imports #191

ph0ph0 opened this issue Sep 29, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@ph0ph0
Copy link

ph0ph0 commented Sep 29, 2022

Instructions

Please fill out the template below to the best of your ability and include a label indicating which tool/service you were working with when you encountered the problem.

Problem

All tests fail with:

[Error Code: 1101] cadence runtime error Execution failed:\n' + 'error: [Error Code: 1054] location (./MetadataViews.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed

This error occurs when calling any transaction.

Could be an issue with RegExp not matching properly.

Steps to Reproduce

Ensure version is @onflow/[email protected]

Run any test that involves a transaction that uses imports.

Acceptance Criteria

Context

Testing of project

@ph0ph0 ph0ph0 added the bug Something isn't working label Sep 29, 2022
@liofancraze
Copy link

Hello,
I'm having the same issue when sending transactions. It seems that the framework don't succeed in resolving imports.

@ph0ph0
Copy link
Author

ph0ph0 commented Oct 1, 2022

Flow CLI: 0.41.0
node: v18.9.0
flow-js-testing: @onflow/[email protected]

@bymi15
Copy link

bymi15 commented Oct 12, 2022

Same problem here.
The issues seems to occur for the versions: v0.3.0-alpha.16 and v0.3.0-alpha.15
I also tested with v0.3.0-alpha.14 and that works fine.

@sisyphusSmiling
Copy link
Contributor

sisyphusSmiling commented Oct 21, 2022

@gregsantos could this be related to what was seen in #182?

Edit: Another possible source: onflow/flow-cadut#130

@adbario
Copy link
Contributor

adbario commented Nov 30, 2022

Upgrade to the latest version v0.3.0-alpha.17, which fixes the issue.

@MaxStalker
Copy link
Collaborator

I am closing this one as it was fixed in latest releases.
Try to update your setup to latest CLI and package version if you still experience this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants