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
As I understand from this PR, the only adding of SDK package to list of sources for transpilation by babel-loader are necessary to use it, but actually, transpiled code throws the exception in default setup of @vue/cli project.
Expected Behavior
To don't throw the exception as if transpilation disabled.
Current Behavior
traverseKeys function of swagger.js throws expection:
VM2850 swagger.js:369 Uncaught (in promise) TypeError: While calling getStatus (), Object(...) is not a function
at eval (VM2850 swagger.js:369)
at Array.map (<anonymous>)
at Object (VM2850 swagger.js:368)
at eval (VM2850 swagger.js:380)
at eval (VM2489 _curryN.js:38)
at eval (VM2488 _arity.js:16)
at snakizeKeys (VM2850 swagger.js:392)
at Object._callee$ (VM2850 swagger.js:532)
at tryCatch (VM2277 runtime.js:62)
at Generator.invoke [as _invoke] (VM2277 runtime.js:288)
Possible Solution
Transpile SDK before publishing to npm (#196), or write a guide how to use SDK with @vue/cli.
Steps to Reproduce
$ npm i @vue/cli -g
$ vue create test-app
# chose default settings
$ cd test-app
$ npm i @aeternity/aepp-sdk@1.2.1
As I understand from this PR, the only adding of SDK package to list of sources for transpilation by
babel-loader
are necessary to use it, but actually, transpiled code throws the exception in default setup of@vue/cli
project.Expected Behavior
To don't throw the exception as if transpilation disabled.
Current Behavior
traverseKeys
function ofswagger.js
throws expection:Possible Solution
Transpile SDK before publishing to npm (#196), or write a guide how to use SDK with
@vue/cli
.Steps to Reproduce
create
vue.config.js
containing:add to
src/main.js
:then open developer console, exception should be raised
The text was updated successfully, but these errors were encountered: