Git Product home page Git Product logo

Comments (8)

jiftle avatar jiftle commented on May 21, 2024

如下警告,可以选择忽略,不影响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.

IreneShiLei avatar IreneShiLei commented on May 21, 2024

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.

WhiteCjy avatar WhiteCjy commented on May 21, 2024

用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.

kirer avatar kirer commented on May 21, 2024

用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.

liaoyinyu avatar liaoyinyu commented on May 21, 2024

用 npm run build 打包到后端服务器,返回的前端页面出错,本地npm run server 没有问题

打开前端文件 index.html 发现 id=“app” 的标签为空
<div id="app"></div>

用的版本是2.4.2

from gin-vue-admin.

bypanghu avatar bypanghu commented on May 21, 2024

各位开发者,因为众所周知的原因,国内的npm仓库DNS污染很严重,所以下载速度很慢(大部分情况都会被墙)。gva前端开发组推荐搭建采用 yarnpnpm 的方式,千万不要采用cnpm ,很容易出现bug!

from gin-vue-admin.

bypanghu avatar bypanghu commented on May 21, 2024

用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.

bypanghu avatar bypanghu commented on May 21, 2024

IreneShiLei

你得首先看看你的 mysql 是不是能ping通……然后看看是否走的自动化

from gin-vue-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.