You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When serving a web app with web-dev-server, attempting to import a backend description file results in a runtime syntax error at the point where the @dfinity/agent tries to load the js-sha256 code.
To Reproduce
I created the most minimal example of what I'm seeing and pushed the project up to my GitHub account here. The ReadMe there has the steps to reproduce:
It's an odd issue, because it definitely is exported by the module. I've looked into it, and it's not trivially easy to modify the source code of js-sha256, because of some strange choices they made in designing their package modularization system
Describe the bug
When serving a web app with web-dev-server, attempting to import a backend description file results in a runtime syntax error at the point where the @dfinity/agent tries to load the js-sha256 code.
To Reproduce
I created the most minimal example of what I'm seeing and pushed the project up to my GitHub account here. The ReadMe there has the steps to reproduce:
For reference, this is the Discord conversation I had with Kyle in the #ask-questions Discord channel.
The text was updated successfully, but these errors were encountered: