Comments (6)
Thanks, fixed and improved
from api.
Thanks for your quick response and support - the instructions in READM.md is so clear, very professional!
But after updating this repo, and follow READM.dm, I still get the error when yarn start:
james@vsbox16:/myRepos/wjw/lila-api/example/board-api/front$ cd ../back//myRepos/wjw/lila-api/example/board-api/back$ yarn install
james@vsbox16:
yarn install v1.22.10
warning ../package.json: No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.37s.
james@vsbox16:~/myRepos/wjw/lila-api/example/board-api/back$ yarn start
yarn run v1.22.10
warning ../package.json: No license field
$ nodemon src/index.ts
[nodemon] 2.0.5
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: ts,json
[nodemon] starting ts-node src/index.ts
/home/james/myRepos/wjw/lila-api/example/board-api/back/src/router.ts:25
const auth = await env.mongo.auth.get(req.session?.authId || '');
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Module.m._compile (/home/james/myRepos/wjw/lila-api/example/board-api/back/node_modules/ts-node/src/index.ts:1043:23)
at Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Object.require.extensions. [as .ts] (/home/james/myRepos/wjw/lila-api/example/board-api/back/node_modules/ts-node/src/index.ts:1046:12)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/home/james/myRepos/wjw/lila-api/example/board-api/back/src/index.ts:6:1)
[nodemon] app crashed - waiting for file changes before starting...
Thanks,
James
from api.
hmm idk, can't reproduce it. What does ts-node --version
say?
from api.
$ ts-node --version
ts-node: command not found
So it seems ts-node is missing in my evn?
Thanks
from api.
Now I installed ts-node v9.1.1 and still see the error:
james@vsbox16:/myRepos/wjw/lila-api/example/board-api/back$ ts-node/myRepos/wjw/lila-api/example/board-api/back$ ts-node -v
ts-node ts-node-script ts-node-transpile-only
james@vsbox16:
v9.1.1
james@vsbox16:/myRepos/wjw/lila-api/example/board-api/back$ yarn install/myRepos/wjw/lila-api/example/board-api/back$ yarn start
yarn install v1.22.10
warning ../package.json: No license field
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.33s.
james@vsbox16:
yarn run v1.22.10
warning ../package.json: No license field
$ nodemon src/index.ts
[nodemon] 2.0.5
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: ts,json
[nodemon] starting ts-node src/index.ts
/home/james/myRepos/wjw/lila-api/example/board-api/back/src/router.ts:25
const auth = await env.mongo.auth.get(req.session?.authId || '');
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Module.m._compile (/home/james/myRepos/wjw/lila-api/example/board-api/back/node_modules/ts-node/src/index.ts:1043:23)
at Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Object.require.extensions. [as .ts] (/home/james/myRepos/wjw/lila-api/example/board-api/back/node_modules/ts-node/src/index.ts:1046:12)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/home/james/myRepos/wjw/lila-api/example/board-api/back/src/index.ts:6:1)
[nodemon] app crashed - waiting for file changes before starting...
^C
james@vsbox16:~/myRepos/wjw/lila-api/example/board-api/back$
Thanks,
from api.
And nodejs is 12.20.1:
james@vsbox16:/myRepos/wjw/lila-api/example/board-api/back$ node -v/myRepos/wjw/lila-api/example/board-api/back$
v12.20.1
james@vsbox16:
from api.
Related Issues (20)
- Rate limiting for challenge creation is not clearly documented HOT 3
- Add Filter for Standard Starting Position in User Game Export API
- Hit with a 429 for posting a move in the middle of a game? HOT 3
- Missing Documention for Broadcasts HOT 1
- Add list of members in a team HOT 7
- Add chapter to study feature request HOT 1
- Duplicate `Get members of a team` on both Users and Teams section is unnecessary
- Add knightvision code to lichess application
- Chapter ID list error HOT 1
- D
- 65535 threads should be enough for anyone
- document /api/timeline
- button auto-disable draw offer HOT 1
- Lichess API documentation
- Lichess API documentation links #2 HOT 1
- Lichess Api code samples in different langs http clients, and sdks HOT 4
- Bot takeback handling is undocumented HOT 2
- "flair" field missing on https://lichess.org/api#tag/Users/operation/apiUser HOT 2
- dark mode support? HOT 2
- Options to not start/pair by Lichess and not to show standings/trophies HOT 2
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 api.