Comments (14)
@dt2017, this is likely due to unexpected characters in accounts.js
.
Please update the application to v0.1.3, as I have updated the code to display the error in these cases.
from xbalance.
I am having the same error even with the account.js you provide:
The ^^^^ is under the export keyword
(function (exports, require, module, __filename, __dirname) { export let accounts = [
^^^^^^
SyntaxError: Unexpected token export
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\Crypto\xBalance\server\xBalance.js:10:14)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\Crypto\xBalance\routes\api.js:6:59)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
from xbalance.
would you please check if you are using latest node.js revision?
from xbalance.
I was on v6.9.1 on Windows 10 and I am getting the same error on v7.9.0
from xbalance.
Please also update to newly released version and please report back if not a syntax error in accounts.js
file
from xbalance.
I am on the latest 0.1.3 if that's what you mean.
I attached the log.
PS: I tried to completely remove my local git clone and reclone but I am still geting the error
2017-04-17T17_16_43_263Z-debug.log.txt
from xbalance.
@SearchAndDestroy, your issue is definitively different than the one with accounts.js
reported by @dt2017.
Would you please remove your xBalance
directory again, run the commands below and send me the logfile?
git clone https://github.com/dutu/xBalance.git
cd xBalance
ren accounts-template.js accounts.js
node -v
npm -v
npm install
node app.js
from xbalance.
I am getting errors during the npm install for node-gyp:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\v141\Toolset.targets(36,5): error MSB8036: The Windows SDK version 10.0.14393.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages o r by right-clicking the solution and selecting "Retarget solution". [D:\Crypto\xBalance\node_modules\bufferutil\build\bufferutil.vcxproj]
I installed it via npm install -g node-gyp@latest and it installed but I am still getting the syntax error
I attached the log
2017-04-17T20_12_29_793Z-debug.log.txt
from xbalance.
the error is not related to xBalance, but rather to your environment setup.
If you follow the steps I've previously mentioned and send me the logs including for npm install I can try to help correcting the problem
from xbalance.
try this:
- install Visual C++ 2015 Build Tools from http://landinghub.visualstudio.com/visual-cpp-build-tools using the Default Install option
- Execute:
npm config set msvs_version 2015
npm install
node app.js
from xbalance.
ok thanks it rebuilt the node-gyp.
I attached all the commands and the outputs.
Still the same syntax error.
_Log.txt
from xbalance.
@SearchAndDestroy thanks for your feedback. would you please use v0.1.4
from xbalance.
Quick check from my work machine and it works :)
from xbalance.
thank you for your assistance
from xbalance.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbalance.