DEV Community

Top talent in Solana
Top talent in Solana

Posted on

Jupiter Integration

I am trying to integrate jupiter api in my frontend
and I added @jup-ag/core module(npm package)
I use typescript to build nuxt.js project
but when I run yarn start

I got this error below

foreach try we got this error for the Jupiter integration:
4:44
ERROR in ./node_modules/@jup-ag/core/dist/core.esm.js friendly-errors 13:59:56
Module parse failed: Unexpected token (1401:73) friendly-errors 13:59:56
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
| }
|

remainingAccounts.push(...prepareRemainingAccounts(amount, platformFee?.feeAccount));
| return JUPITER_PROGRAM.instruction.mercurialExchange(amount ? new BN$1(amount) : amount, new BN$1(minimumOutAmount), platformFee?.feeBps ?? 0, {
| accounts: stableSwapNPoolIntoMercurialExchange(stableSwapNPool, userSourceTokenAccountAddress, userDestinationTokenAccountAddress, user),
friendly-errors 13:59:56
@ ./node_modules/babel-loader/lib??ref--12-0!./node_modules/ts-loader??ref--12-1!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/swap.vue?vue&type=script&lang=ts& 44:0-39 178:25-32

Top comments (0)