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

Daepps not working with aepp-sdk.browser.js 4.0.1 and new baseapp version #500

Closed
moritzfelipe opened this issue Jun 21, 2019 · 2 comments
Closed
Assignees

Comments

@moritzfelipe
Copy link

I'm trying to adjust the code for the aeternity development 101 learning materials on dacade, to the updated SDK and baseaepp.

Here is the code of the daepp:
https://github.com/moritzfelipe/meme-voting

Its hosted here:
https://moritzfelipe.github.io/meme-voting/

I use the staging version of the new baseaepp form here:
https://stage-identity.aepps.com

I load the browser.js file from here:
https://unpkg.com/@aeternity/aepp-sdk@4.0.1/dist/aepp-sdk.browser.js

I get this error message:
image

Looks similar to this issue:
https://forum.aeternity.com/t/cannot-use-latest-sdk-webpack-in-browser/3730

@ricricucit asked me to post this here.

Any help would be greatly appreciated.

Thank you,
Moritz

@ricricucit ricricucit self-assigned this Jun 21, 2019
@nduchak
Copy link
Contributor

nduchak commented Jun 21, 2019

@moritzfelipe Hey, the bundle which you are using do not contain all sdk deps. To use this bundle you need to have some build system like web-pack which automaticaly retrieve all deps. Instead you can use another bundle which already have all deps inside https://unpkg.com/@aeternity/aepp-sdk@4.0.1/dist/aepp-sdk.browser-script.js

@ricricucit
Copy link
Contributor

Thanks @moritzfelipe for this issue, you can refer to this example to see how this works.

The example includes the latest version, but as @nduchak points out, you can also change version (see example's comments).

I will adjust our docs accordingly and come back to you afterwards.

nduchak pushed a commit that referenced this issue Jun 21, 2019
…l page (#501)

* docs: add instructions about how to include directly the SDK in a html page

* reorganised Docs based on PR 481 and issue #500. Fixes issue #500

* remove internalUrl as default 'mandatory'
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

3 participants