Open shenghy opened 5 years ago
前排打卡,加油!
up!
后台用node呗 技术胖大佬
从react.js到现在的实战,学到了很多,谢谢!(学生党一枚,目前自学前端。)希望博主减肥成功...
希望后端使用koa2
这个框架
大佬,一个项目写完之后有没有必要做到单元测试呀,写这个博客的时候,要不要把单元测试也带上呢
支持,希望可以跟着大佬这一套视频,我也写一个自己的博客出来,期待期待
正好想写一个博客
加油!
@zl612
后台用node呗 技术胖大佬
11
胖哥帅爆了
胖哥,想请教下右侧目录模块的实现
@zl612
后台用node呗 技术胖大佬
node +1
p08 list.css是空的么,只用antd样式
加油加油!
项目中如何配置less或sass
膜拜大佬~~~ 我近期也撸了个 react hooks + koa2 + mysql spa 博客~ 欢迎观光交流 地址 https://guodada.fun 源码 https://github.com/gershonv/react-blog 看完你的教程我也用 next.js 去重写啦~
大佬,什么时候开讲react natvie呀。
大佬,最近不知道为什么访问你的网站很卡,特别是鼠标滚动下来,时不时就有鼠标变成圈圈一直转,页面卡住的感觉。
希望大佬node完成后台的部分啊,毕竟这里大部分的小伙伴都是前端开发,PHP确实不会啊。
大佬 数据库为啥不用MongoDB啊
胖哥车速慢点,,上班空余时间看的我心惊胆战面红耳赤的,生怕旁边小姐姐看见
优秀
加油 养肥了再看
时间戳这个位置,这个的具体的值是怎么获取的,我用getTime()方法获得的值和这个不一样,存储不到数据库中,谢谢
p18. 我请求文章详情页后台接口时 next.js前台控制台提示cors 怎么解决呀
@cwf5223216
p18. 我请求文章详情页后台接口时 next.js前台控制台提示cors 怎么解决呀
安装一下egg-cors
然后在plugin.js
里添加
exports.cors = {
enable: true,
package: 'egg-cors',
};
config.defaults.js
里添加
config.security = {
csrf: {
enable: false,
},
domainWhiteList: [ '*' ],
};
config.cors = {
origin: '*',
allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS',
};
就好了
@forget1 已经解决了 非常感谢
highlight.js
包,而不是highlight
,提醒下各位~detailed-content
类中加入以下代码才能看到效果:
<div className="detailed-content" >
<div dangerouslySetInnerHTML = {{__html: html}}></div>
</div>
胖哥,请问一下,Ant CSS样式按需引用,查看了一下 ant的css文件,为啥有650k的大小!
那个胖哥文档有点错误那个是安装 yarn add highlightjs 引入 import hljs from 'highlightjs'; import 'highlightjs/styles/monokai-sublime.css';
可以
请教一下,大佬! blog首页如果要加上文章分页功能要如何写呢 是要在后台计算好传给前台,还是在前台进行计算和展示
胖哥,搞个QQ快速登录+评论
请问有源码吗?
支持
p20 高亮没有显示 代码都没有问题 为啥呢
胖哥,什么时候出d3.js教程啊
@hanwensheng
p20 高亮没有显示 代码都没有问题 为啥呢
是不是引入的css样式有问题
666
胖哥,这种服务端渲染的项目怎么部署到阿里云服务器上,求解
胖哥项目做完后能教一下怎么打包部署到阿里云服务器上吗
我是怎么登陆的?
顶!支持!有希望了!期待胖哥新增文章的教程!
胖哥,这个项目过年前能做完吗?好期待自己跟着敲完顺便学完一个完整的项目。(胖哥看见能回复一下吗)
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
The react-scripts package provided by Create React App requires a dependency:
"webpack": "4.41.0"
Don't try to install it manually: your package manager does it automatically.
However, a different version of webpack was detected higher up in the tree:
D:\Resource\project\react\blog\node_modules\webpack (version: 4.39.0)
Manually installing incompatible versions is known to cause hard-to-debug issues.
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.
To fix the dependency tree, try following the steps below in the exact order:
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
2. Delete node_modules in your project folder.
3. Remove "webpack" from dependencies and/or devDependencies in the package.json file in your project folder.
4. Run npm install or yarn, depending on the package manager you use.
In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:
5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
This may help because npm has known issues with package hoisting which may get resolved in future versions.
6. Check if D:\Resource\project\react\blog\node_modules\webpack is outside your project directory.
For example, you might have accidentally installed something in your home folder.
7. Try running npm ls webpack in your project folder.
This will tell you which other package (apart from the expected react-scripts) installed webpack.
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.
P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!
有遇到这个问题的吗?这种应该怎么解决..谢谢
6666666
建议胖哥点击右边目录后的滚动效果改进一下,感觉每次滚动要滚好久,用着怪不舒服的
https://jspang.com/posts/2019/09/19/react-demo.html