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
Cannot import assemblyscript module #663
Comments
We are working on upgrading our AS version so we can be compatible with the ecosystem. |
@leoyvens Can you tell us how big of a change this would be, thus how far on the horizon it might be? Like @Remscar, I need regex support and would also like to import the bulk of my own code as a library (because it's shared with another project). Would this be something worth looking into for an 'amateur' (a reasonably competent developer, but totally unfamiliar with the codebase)? How far could somebody get just bumping the AS version and focusing on broken tests? Thanks! |
@dewf No need to invest too much time into this. There is already a open pull-request where we are working on at the moment. That said, it will probably take some more weeks because it also is dependent on changes in the graph-node. |
Hi @dewf the latest version of AssemblyScript is now supported by graph-node v0.24.0, and there is an alpha release of graph-ts and graph-cli. As there are quite substantial changes from the previous version, there is a migration guide here by @otaviopace. Would be great if you can give it a try, and do let us know if you encounter any issues! |
@azf20 thanks for the heads-up. I was actually just waiting for the full release but since you asked nicely I decided to try to work with the alpha. Unfortunately I'm blocked on the same |
The |
@otaviopace mind pinging me as well? |
can we use as external library now? i want to call external http request by as-fetch |
The new version of AssemblyScript is finally supported by the new version of the @Remscar @nickadamson @dewf if you folks can try it out, here's the migration guide 🙂 @cauta unfortunately you can't use |
Hi! Hope the latest AssemblyScript import functionality is working for you @Remscar @nickadamson @dewf , closing this issue, please re-open if you are still having issues! |
I've been trying to import the
assemblyscript-regex
npm package which is an assembly script library that provides RegEx. (https://www.npmjs.com/package/assemblyscript-regex)I import the package like:
and when i try to run
graph build
i get the following error:I tried to just copy/paste the assembly script code into my
src
folder and use it through that but also ran into a number of compiler problems (such as 'operation not supported')My understanding was that you could import other assemblyscript modules into subgraph modules. What am I doing wrong, or is this package just incompatible?
Versions:
The text was updated successfully, but these errors were encountered: