brooooooklyn / learning-rxjs Goto Github PK
View Code? Open in Web Editor NEWLearning RxJS step by step
Learning RxJS step by step
解决办法:
package.json
"typescript": "^2.3.4",
改为"typescript": "2.3.4",
重新install
1.18.5
to 1.18.6
.This version is covered by your current version range and after updating it in your project the build failed.
nodemon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 1 commits.
521eb1e
fix: restart on change for non-default signals (#1409) (#1430)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
2.0.46
to 2.0.47
.This version is covered by your current version range and after updating it in your project the build failed.
@types/koa is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
RROR in /Users/**/learning-rxjs/tsconfig.json
error TS2688: Cannot find type definition file for 'node'.
切换成 seed 分支无法运行, master 分支是可以的
npm start
build 的时候报错 Cannot find type definition file for 'chai'
"@types/chai": "^3.4.34"
这个不知道 是不是我这边的问题。
7.0.35
to 7.0.36
.This version is covered by your current version range and after updating it in your project the build failed.
@types/koa-router is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
When I tried to execute the command below:
npm i -g ts-node && ts-node example/switchMap.ts
to see the execution result of switchMap
, I had this error:
Error: Cannot find module 'typescript'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at load (/usr/lib/node_modules/ts-node/src/index.ts:184:27)
at service (/usr/lib/node_modules/ts-node/src/index.ts:363:32)
at Object.register (/usr/lib/node_modules/ts-node/src/index.ts:372:5)
at Object.<anonymous> (/usr/lib/node_modules/ts-node/src/_bin.ts:147:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
Is there something I missed to install?
I have a question in the codes below which generates the stream of the click on the items. What .filter(e => e.target === $todoItem)
is for?
When I commented that line, the toggle works too.
const toggle$ = item$.mergeMap($todoItem => {
return Observable.fromEvent<MouseEvent>($todoItem, 'click')
// Can I comment this line?
// .filter(e => e.target === $todoItem)
.mapTo($todoItem)
})
.do(($todoItem: HTMLElement) => {
if ($todoItem.classList.contains('done')) {
$todoItem.classList.remove('done')
} else {
$todoItem.classList.add('done')
}
})
The same question in the codes of generating the stream of add
.
win10
npm 3.8.9
node v6.2.0
我切换分支后,再npm start报错,要怎么解决?
sanzhs@DESKTOP-TB810EH MINGW32 /e/RxJS/learning-rxjs (master)
$ git checkout seed
Branch seed set up to track remote branch seed from origin.
Switched to a new branch 'seed'
sanzhs@DESKTOP-TB810EH MINGW32 /e/RxJS/learning-rxjs (seed)
$ npm start
[email protected] start E:\RxJS\learning-rxjs
webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 3000 --content-base src
'webpack-dev-server' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒▒еij▒▒▒
▒▒▒▒▒▒▒▒▒ļ▒▒▒
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "E:\nodejs\node.exe" "E:\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 3000 --content-base src
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 3000 --content-base src'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the rxjs-todomvc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 3000 --content-base src
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs rxjs-todomvc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls rxjs-todomvc
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
npm ERR! E:\RxJS\learning-rxjs\npm-debug.log
sanzhs@DESKTOP-TB810EH MINGW32 /e/RxJS/learning-rxjs (seed)
================
还有个小白问题,刚接触TypeScript和RxJS,不是很熟悉。
按官网的npm install rxjs-es安装后,自己编了hello.ts文件,内容如下:
import Rx from 'rxjs/Rx';
Rx.Observable.of(1,2,3)
.map(x => console.log(x));
tsc hello.ts编译之后生成hello.js,放在html的<script>里测试显示找不到这个依赖
Uncaught ReferenceError: require is not defined
at greeter.js:2
这个要怎么解决,是要在特定目录下写ts文件吗?
我checkout了master分支,npm install ,然后checkout seed分支,又执行了npm install ,npm start 还是提示有些module没有,试图安装了几个,还是有问题。麻烦你看一下是不是把所有的依赖都写进去了。或者,update一下readme
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.
Since we did not receive a CI status on the greenkeeper/initial
branch, we assume that you still need to configure it.
If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/
.
We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
peerDependencies WARNING webpack-dev-server@^3.0.0 requires a peer of webpack@^4.0.0-beta.1 but [email protected] was installed
peerDependencies WARNING [email protected] › [email protected] requires a peer of webpack@^4.0.0 but [email protected] was installed
The CLI moved into a separate package: webpack-cli.
Please install 'webpack-cli' in addition to webpack itself to use the CLI.
-> When using npm: npm install webpack-cli -D
-> When using yarn: yarn add webpack-cli -D
module.js:538
throw err;
^
Error: Cannot find module 'webpack-cli/bin/config-yargs'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
升级版本之后webpack配置也要修改
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.