Closed andrejvasilj closed 1 year ago
if you update the code files in 'web' directory, your have to run 'npm build ' command in 'web' directory, then use the files in 'dist' of building web to replace files in src/main/resources/static, then you use gradle build to get a new jar file, your new code will work
I have problem with this when trying to build , anyone?
ERROR in ./node_modules/@ethereumjs/util/dist/provider.js 25:22 Module parse failed: Unexpected token (25:22) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | return provider; | }
else if (provider?.connection?.url !== undefined) {
| return provider.connection.url; | } @ ./node_modules/@ethereumjs/util/dist/index.js 70:13-34 @ ./node_modules/web3-utils/lib/utils.js @ ./node_modules/web3-utils/lib/index.js @ ./src/util/validate.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/views/chaincode/dialog/checkEventDialog.vue?vue&type=script&lang=js& @ ./src/views/chaincode/dialog/checkEventDialog.vue?vue&type=script&lang=js& @ ./src/views/chaincode/dialog/checkEventDialog.vue @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/views/chaincode/oldContract.vue?vue&type=script&lang=js& @ ./src/views/chaincode/oldContract.vue?vue&type=script&lang=js& @ ./src/views/chaincode/oldContract.vue @ ./src/router/index.js @ ./src/main.js
ERROR in ./node_modules/@ethereumjs/util/dist/bytes.js 329:36 Module parse failed: Unexpected token (329:36) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | function bufArrToArr(arr) { | if (!Array.isArray(arr)) {
return Uint8Array.from(arr ?? []);
| } | return arr.map((a) => bufArrToArr(a)); @ ./node_modules/@ethereumjs/util/dist/index.js 45:13-31 @ ./node_modules/web3-utils/lib/utils.js @ ./node_modules/web3-utils/lib/index.js @ ./src/util/validate.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/views/chaincode/dialog/checkEventDialog.vue?vue&type=script&lang=js& @ ./src/views/chaincode/dialog/checkEventDialog.vue?vue&type=script&lang=js& @ ./src/views/chaincode/dialog/checkEventDialog.vue @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/views/chaincode/oldContract.vue?vue&type=script&lang=js& @ ./src/views/chaincode/oldContract.vue?vue&type=script&lang=js& @ ./src/views/chaincode/oldContract.vue @ ./src/router/index.js @ ./src/main.js
ERROR in ./node_modules/@ethereumjs/util/dist/asyncEventEmitter.js 46:45 Module parse failed: Unexpected token (46:45) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | let [data, callback] = args; | const self = this;
let listeners = self._events[event] ?? [];
| // Optional data argument | if (callback === undefined && typeof data === 'function') { @ ./node_modules/@ethereumjs/util/dist/index.js 57:13-43 @ ./node_modules/web3-utils/lib/utils.js @ ./node_modules/web3-utils/lib/index.js @ ./src/util/validate.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/views/chaincode/dialog/checkEventDialog.vue?vue&type=script&lang=js& @ ./src/views/chaincode/dialog/checkEventDialog.vue?vue&type=script&lang=js& @ ./src/views/chaincode/dialog/checkEventDialog.vue @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/views/chaincode/oldContract.vue?vue&type=script&lang=js& @ ./src/views/chaincode/oldContract.vue?vue&type=script&lang=js& @ ./src/views/chaincode/oldContract.vue @ ./src/router/index.js @ ./src/main.js
ERROR in ./node_modules/@noble/curves/abstract/weierstrass.js 920:61 Module parse failed: Unexpected token (920:61) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | const u1 = modN(h is); // u1 = hs^-1 mod n | const u2 = modN(r is); // u2 = rs^-1 mod n
const R = Point.BASE.multiplyAndAddUnsafe(P, u1, u2)?.toAffine(); // R = u1⋅G + u2⋅P
| if (!R) | return false; @ ./node_modules/@noble/curves/secp256k1.js 8:25-61 @ ./node_modules/ethereum-cryptography/secp256k1.js @ ./node_modules/@ethereumjs/util/dist/constants.js @ ./node_modules/@ethereumjs/util/dist/index.js @ ./node_modules/web3-utils/lib/utils.js @ ./node_modules/web3-utils/lib/index.js @ ./src/util/validate.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/views/chaincode/dialog/checkEventDialog.vue?vue&type=script&lang=js& @ ./src/views/chaincode/dialog/checkEventDialog.vue?vue&type=script&lang=js& @ ./src/views/chaincode/dialog/checkEventDialog.vue @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/views/chaincode/oldContract.vue?vue&type=script&lang=js& @ ./src/views/chaincode/oldContract.vue?vue&type=script&lang=js& @ ./src/views/chaincode/oldContract.vue @ ./src/router/index.js @ ./src/main.js
Build failed with errors.
Hi , so the problem that I have is actually when building the Webase-front , and all of the changes that I did inside web folder , (I want to translate it to different language) nothing happens it builds the same code all the time , anyone have an idea about this , do I need to build Vue.js app first then use gradle ?