Comments (3)
Found a fix to install, added quotes to babel.config.js first/only line:
'../boilerplate/babel.config.js'
But now npm start
errors with:
$ npm start
> [email protected] start C:\Users\Youdaman\Desktop\tinygames\pong
> node dist-server/main.js
C:\Users\Youdaman\Desktop\tinygames\pong\dist-server\main.js:1
(function (exports, require, module, __filename, __dirname) { import path from 'path';
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node dist-server/main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Youdaman\AppData\Roaming\npm-cache\_logs\2019-03-22T16_28_37_913Z-debug.log
Will consult Google :)
from lance.
Assuming this is something to do with Babel. Or maybe Windows?
from lance.
I tried it both on linux and windows, and it worked well for me. what version of node are you using? I'm using 8.9.0 (when in windows).
the files babel.config.js, .gitignore, and .eslintrc.js are softlinks to the actual files in ../boilerplate
try removing the links, and copying the original files into the pong directory to see if that helps.
from lance.
Related Issues (20)
- Add additional exports HOT 1
- Idk what's wrong with starting HOT 6
- add more games to gallery on home page
- Hardcoded Host in NetworkMonitor HOT 4
- playerId vs id: update docs HOT 1
- applySync missing in frameSync strategy
- Player ID is always autogenerated HOT 1
- The ClientEngine.start() promise is not resolved HOT 2
- Script minification causes name mismatch in Serializer.registerClass HOT 2
- My First Game: Pong tutorial is missing imports
- Serializer causes a crash if netScheme has a string HOT 2
- entity component system HOT 1
- Spaaace demo no longer works HOT 1
- Is lance being actively developed? HOT 2
- What exactly is bending? HOT 3
- Add missing debug JSDoc annotations to ServerEngine constructor
- What is the purpose of the Serializer? HOT 1
- Is this project still active? HOT 1
- Make "from scratch" tutorials
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 lance.