Comments (8)
如下警告,可以选择忽略,不影响run serve的启动。 可以正常访问呢
Module Warning (from ./node_modules/[email protected]@eslint-loader/index.js):
error: Unnecessary escape character: \_ (no-useless-escape) at src/utils/stringFun.js:17:26:
15 | // 下划线转换驼峰
16 | export const toHump = (name) => {
> 17 | return name.replace(/\_(\w)/g, function(all, letter){
| ^
18 | return letter.toUpperCase();
19 | });
20 | }
from gin-vue-admin.
if db, err := gorm.Open(mysql.New(mysqlConfig), gormConfig(m.LogMode)); err != nil {
global.GVA_LOG.Error("MySQL启动异常", zap.Any("err", err))
这报错
-》 go.uber.org/zap.(*Logger).check(0x0, 0x2, 0x1564cd2, 0x11, 0xc00028c040)
from gin-vue-admin.
用npm run build打包后部署到服务器,通过nginx访问就抱如下错误,本地npm run server没问题
TypeError: u.default.addRoute is not a function
at app.41286454.js:1
at Array.forEach ()
at app.41286454.js:1
at l (chunk-libs.7ad5b2a1.js:34)
at Generator._invoke (chunk-libs.7ad5b2a1.js:34)
at Generator.next (chunk-libs.7ad5b2a1.js:34)
at r (chunk-libs.7ad5b2a1.js:1)
at s (chunk-libs.7ad5b2a1.js:1)
from gin-vue-admin.
用npm run build打包后部署到服务器,通过nginx访问就抱如下错误,本地npm run server没问题
TypeError: u.default.addRoute is not a function
at app.41286454.js:1
at Array.forEach ()
at app.41286454.js:1
at l (chunk-libs.7ad5b2a1.js:34)
at Generator._invoke (chunk-libs.7ad5b2a1.js:34)
at Generator.next (chunk-libs.7ad5b2a1.js:34)
at r (chunk-libs.7ad5b2a1.js:1)
at s (chunk-libs.7ad5b2a1.js:1)
我也遇到这个问题,解决了吗
from gin-vue-admin.
用 npm run build 打包到后端服务器,返回的前端页面出错,本地npm run server 没有问题
打开前端文件 index.html 发现 id=“app” 的标签为空
<div id="app"></div>
用的版本是2.4.2
from gin-vue-admin.
各位开发者,因为众所周知的原因,国内的npm仓库DNS污染很严重,所以下载速度很慢(大部分情况都会被墙)。gva前端开发组推荐搭建采用
yarn
、pnpm
的方式,千万不要采用cnpm
,很容易出现bug!
from gin-vue-admin.
用npm run build打包后部署到服务器,通过nginx访问就抱如下错误,本地npm run server没问题 TypeError: u.default.addRoute is not a function at app.41286454.js:1 at Array.forEach () at app.41286454.js:1 at l (chunk-libs.7ad5b2a1.js:34) at Generator._invoke (chunk-libs.7ad5b2a1.js:34) at Generator.next (chunk-libs.7ad5b2a1.js:34) at r (chunk-libs.7ad5b2a1.js:1) at s (chunk-libs.7ad5b2a1.js:1)
请不要使用 国内代理
from gin-vue-admin.
IreneShiLei
你得首先看看你的 mysql 是不是能ping通……然后看看是否走的自动化
from gin-vue-admin.
Related Issues (20)
- [Feature]: 前端style目录下的两个scss有些混乱 HOT 1
- [Feature]: 示例文件的媒体库增加批量上传功能 HOT 6
- [Bug]: 从数据库存在表生成代码,如果数据表 已经 有created_at 字段,生成代码 重复 HOT 2
- [Bug]: [vite] Internal server error: vite.createFilter is not a function HOT 2
- [Bug]: 最新2.6.2版本。出现 json: cannot unmarshal string into Go struct field abc.level of type int HOT 4
- [Bug]: 删除菜单时查询父菜单时 failed to encode args[0]: unable to encode 22 into text format for text (OID 25): cannot find encode plan
- [Bug]: 删除菜单: ERROR: table name "sys_base_menus" specified more than once (SQLSTATE 42712)
- [Bug]: 修改/新增菜单选根目录时提示`ParentId值不能为空`
- [Bug]: (Postgresql) 修改角色、用户、字典更新报错
- [Feature]: Model字符字段增加gorm size tag
- [Bug]: 媒体库上传图片回显404 HOT 7
- [Bug]: DisableForeignKeyConstraintWhenMigrating为true时角色表会创建失败 HOT 2
- [Bug]: 菜单每隔一次出现错误, HOT 4
- [Feature]: 工作流功能申请 HOT 1
- [Bug]: table.vue.tpl getDetails方法没有定义 HOT 2
- [Bug]: 枚举为空报错
- [Bug]: switch样式失效
- 富文本报错 HOT 1
- Casbin 权限问题 [Bug]: HOT 2
- [Feature]: 水印功能不够完善
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 gin-vue-admin.