Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
solana - /node_modules/@toruslabs/eccrypto/index.js: 'return' outside of function

I am using vue for solana development.

The library I use is @solana/wallet-adapter

error shows:

/node_modules/@toruslabs/eccrypto/index.js: 'return' outside of function 

Since the example is only for React, it's hard for me to find the root cause of the error.

App.vue

<template>
  <div id="app">
    <WalletConnectButton/>
  </div>
</template>

<script>
import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-vue';
import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
import {
    getLedgerWallet,
    getPhantomWallet,
    getSlopeWallet,
    getSolflareWallet,
    getSolletExtensionWallet,
    getSolletWallet,
    getTorusWallet,
} from '@solana/wallet-adapter-wallets';
import {
    WalletDisconnectButton,
    WalletMultiButton,
    WalletConnectButton
} from '@solana/wallet-adapter-vue-ui';
import { clusterApiUrl } from '@solana/web3.js';


export default {
  name: "App",
  components: {
    
  }
};
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>

Codesandbox
https://codesandbox.io/s/strange-oskar-j1byt?file=/src/App.vue:0-906

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Im not sure if this helps or not, but maybe the module is missing. npm i @toruslabs/eccrypto

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!