#4805·jimureport

jimubi-spring-boot3-starter:2.5.4 前端包不自洽:index.js 引用的模块(含 vue)在包内无定义,大屏页面抛 Cannot read properties of undefined

Author: pubg-EddieCreated Sep 25, 2026Updated Sep 25, 2026
Labelsbug
版本号:

jimubi-spring-boot3-starter: 2.5.4
jimureport-spring-boot3-starter: 2.5.4
(Spring Boot 3.5.5 / JDK 17)

jar 校验(取自官方私服,非下载损坏):
jimubi-spring-boot3-starter-2.5.4.jar
md5 31112a8bb6ef3bba0c4103ab9e931eac / sha1 999e767dd98f7cef9a610a1088e0c69b583e4c01

问题描述:

jimubi-spring-boot3-starter:2.5.4 前端包不自洽:static/drag/lib/js/index.js 引用的模块,在同一包内(含配套的 chunk-vendors.chunk.js)找不到定义,其中包含 vue 的模块 id 3955。

导致大屏页面打开即空白、完全不可用(/jimu/drag/bigindex、/jimu/drag/share/view 都一样)。报表侧 /jmreport/** 正常。

同一脚本跨版本对比「引用了但无定义的模块数」:

2.3.2.1 2.5.0.2 2.5.2 2.5.4
30 32 32 222

前三个是该校验口径的固有噪声(正常基线);只有 2.5.4 跳变到 222,且 vue 的 3955 在整包内不存在(而 index.js 引用它 61 次)——即 index.js 与 chunk-vendors.chunk.js 不是同一套模块 id 空间。

错误日志&截图:
Uncaught TypeError: Cannot read properties of undefined (reading 'call')
    at r (index.js:7:5127)
    at Module.a429 (index.js:7:1703260)
    at r (index.js:7:5127)
    at 0 (index.js:7:13910)

控制台再执行:window.webpackJsonp.some(p => p[1] && p[1]['3955'])
→ 2.5.4 为 false(vue 未注册),2.5.2 为 true。

(截图:控制台报错 + 页面空白)

重现步骤:
  1. 下载官方私服构件:
    bash
    curl -k -O https://maven.jeecg.org/nexus/content/repositories/jeecg/org/jeecgframework/jimureport/jimubi-spring-boot3-starter/2.5.4/jimubi-spring-boot3-starter-2.5.4.jar
  2. 保存为 chk.py,运行 python chk.py jimubi-spring-boot3-starter-2.5.4.jar(同脚本对 2.5.2 / 2.5.0.2 / 2.3.2.1 复跑即得上表):
    python
    import re, sys, zipfile
    DEF = re.compile(r'([0-9a-z]{1,6})["\']?\s*:\s*(?:function\s*\(|\([^)]*\)\s*=>)')
    REQ = re.compile(r'\(\s*["\']([0-9a-z]{1,6})["\']\s*\)')
    z = zipfile.ZipFile(sys.argv[1])
    idx = z.read('static/drag/lib/js/index.js').decode('utf-8','replace')
    cv = z.read('static/drag/lib/js/chunk-vendors.chunk.js').decode('utf-8','replace')
    d = {m.group(1) for m in DEF.finditer(idx + cv)}
    r = {m.group(1) for m in REQ.finditer(idx)}
    print('引用', len(r), '定义', len(d), '无定义', len(r - d), '| vue(3955)有定义:', '3955' in d)
  3. 启动集成了该 starter 的服务,打开大屏页面 /jimu/drag/bigindex?pageId=xxx(或 /jimu/drag/share/view/xxx)→ 控制台报错、页面空白。

已排除:构件损坏(md5/sha1 与官方私服发布值一致)、用了非官方源(私服与 aliyun 镜像逐字节一致)、浏览器缓存(无痕同样复现)、nginx 缓存、部署错版本。仅 2.5.4 有此问题。

期望:确认 jimubi-spring-boot3-starter:2.5.4 前端产物是否为发布错包/构建批次不一致,并提供修复版(2.5.4.1 / 2.5.5 均可)。