Skip to content
Cosmopediaby Unity Nodes
DiscussionsCosmos-SDKVue fails to compile in votes tutorialForum ↗

Vue fails to compile in votes tutorial

Cosmos-SDK6 posts1,836 views1 likesLast activity Dec 2021
VL
VladimirOP
Nov 2021

ERROR Failed to compile with 1 error 12:54:29 PM error in ./node_modules/ @starport /vue/lib/starport-vue.common.js Module parse failed: Unexpected token (21119:247) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See Concepts | webpack | }, null, 4), _ctx.fulldenom.denom.indexOf(‘ibc/’) == 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.Fragment, { | key: 0 }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.createTextVNode)(" IBC/" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.toDisplayString)(_ctx.denomTraces[_ctx.fulldenom.denom.split(‘/’)[1]]?.denom_trace.path.toUpperCase() ?? ‘’) + “/” + (0,external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.toDisplayString)(_ctx.denomTraces[_ctx.fulldenom.denom.split(‘/’)[1]]?.denom_trace.base_denom.toUpperCase() ?? ‘UNKNOWN’), 1)], 64)) :…

Excerpt (1146 of 2307 characters). Read the whole post on the forum ↗

MK
mks
Nov 2021

I think i had the same problem. If i remember correctly, just change

 "@starport/vue": "^0.1.53",
   "@starport/vuex": "^0.1.53",

to

    "@starport/vue": "0.1.53",
    "@starport/vuex": "0.1.53",
VL
Vladimir
Nov 2021
mks:

"@starport/vuex": "0.1.53",

That helped! Thanks a lot!

WY
WyattJohnston
Dec 2021

What file is this needing to be updated?

VL
Vladimir
Dec 2021 1

github.com/cosmos/sdk-tutorials chore: current version breaks bundler `cosmos:master` ← `DemidovVladimir:chore/starport-vue-client/vote-tutorial` opened 12:06PM - 02 Dec 21 UTC DemidovVladimir +2 -2 Here is the problem log: ERROR Failed to compile with 1 error 12:54:29 PM … error in ./node_modules/@starport/vue/lib/starport-vue.common.js Module parse failed: Unexpected token (21119:247) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See Concepts | webpack 1 | }, null, 4), _ctx.fulldenom.denom.indexOf(‘ibc/’) == 0 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.Fragment, { | key: 0 }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_namespaceObject.createTextVNode)(" IBC/" +…

Excerpt (1042 of 5098 characters). Read the whole post on the forum ↗

WY
WyattJohnston
Dec 2021

In the most recent version of the tutorial I changed the below code in the folder .\Voter\Vue\Source\package.json

//Changed from
    "@starport/vue": "^0.1.49",
    "@starport/vuex": "^0.1.49",
//To
    "@starport/vue": "0.1.53",
    "@starport/vuex": "0.1.53",
← Back to Discussions