I’m having problem in using node package ccxt(crypto exchange). I managed to add the package and import/use in client side. However doing the same on server side is giving me error. I need to write the code in server side for the exchanges and use it in client. Any help would be appreciated,
This is my code in server/main.js
‘use strict’;
import ccxt from ‘ccxt’;
Error in build:
Your app is crashing. Here’s the latest log:
packages\modules.js:132
const Exchange = require (’./js/base/Exchange’)
^^^^^
SyntaxError: Use of const in strict mode.
at D:\Meteor\myapp.meteor\local\build\programs\server\boot.js:278:30
at Function..each..forEach (D:\Meteor\myapp\node_modules\underscore\underscore.js:153:9)
at D:\Meteor\myapp.meteor\local\build\programs\server\boot.js:133:5
Exited with code: 8
Your application is crashing. Waiting for file change.