Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Manual assembly and printing function error #4718

Closed
2 tasks done
18860852449 opened this issue Feb 25, 2025 · 2 comments
Closed
2 tasks done

[Bug] Manual assembly and printing function error #4718

18860852449 opened this issue Feb 25, 2025 · 2 comments

Comments

@18860852449
Copy link

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

0.6.1

复现链接

vue2 + webpack5
问题描述:手动组装,引入打印功能的时候报错(所有引入顺序等等保证准确)
引入代码: import { UniverSheetsPrintPlugin } from '@univerjs-pro/sheets-print'
报错内容如下图:

预期行为

预期和以前的老版本一样引入不报错,正常使用。

实际行为

实际情况现在报错:permission.js:45 Error: Cannot find module '@univerjs/core'
at webpackEmptyContext (app.js:41:10)
at ./node_modules/@univerjs-pro/sheets-print/lib/cjs/index.js (chunk-vendors.js:28:1)
at webpack_require (app.js:12392:32)
at fn (app.js:12660:21)
at ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/UniverSheet/index.vue?vue&type=script&lang=js (app.js:6708:1)
at webpack_require (app.js:12392:32)
at fn (app.js:12660:21)
at eval (index.vue?vue&type=script&lang=js:5:218)

运行环境

Chrome

系统信息

System:
OS: Windows 10 10.0.17763
CPU: (5) x64 Intel(R) Xeon(R) CPU E5-2687W v3 @ 3.10GHz
Memory: 3.71 GB / 16.00 GB
Binaries:
Node: 16.20.2 - D:\develop\env\nodejs\node.EXE
npm: 8.19.4 - D:\develop\env\nodejs\npm.CMD
Browsers:
Chrome: 133.0.6943.127
Internet Explorer: 11.0.17763.2989

@univer-bot univer-bot bot added the bug Something isn't working label Feb 25, 2025
@univer-bot univer-bot bot changed the title [Bug] 手动组装打印功能报错 [Bug] Manual assembly and printing function error Feb 25, 2025
@univer-bot
Copy link

univer-bot bot commented Feb 25, 2025

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] 手动组装打印功能报错

Title: [Bug] Manual assembly and printing function error


Have you checked the following before you submitted this question?

  • Is this really a problem?
  • I've searched in Github Issues but found no similar questions.

Affected packages and versions

0.6.1

Reproduce link

vue2 + webpack5
Problem description: Manual assembly, errors are reported when introducing printing functions (all introduction orders, etc. are guaranteed to be accurate)
Introduce code: import { UniverSheetsPrintPlugin } from '@univerjs-pro/sheets-print'
The error content is as follows:

Expected behavior

It is expected that the introduction will not report any errors as before, and it will be used normally.

Actual behavior

The actual situation is now reported: permission.js:45 Error: Cannot find module '@univerjs/core'
at webpackEmptyContext (app.js:41:10)
at ./node_modules/@univerjs-pro/sheets-print/lib/cjs/index.js (chunk-vendors.js:28:1)
at webpack_require (app.js:12392:32)
at fn (app.js:12660:21)
at ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options !./src/components/UniverSheet/index.vue?vue&type=script&lang=js (app.js:6708:1)
at webpack_require (app.js:12392:32)
at fn (app.js:12660:21)
at eval (index.vue?vue&type=script&lang=js:5:218)

Running environment

Chrome

System Information

System:
OS: Windows 10 10.0.17763
CPU: (5) x64 Intel(R) Xeon(R) CPU E5-2687W v3 @ 3.10GHz
Memory: 3.71 GB / 16.00 GB
Binaries:
Node: 16.20.2 - D:\develop\env\nodejs\node.EXE
npm: 8.19.4 - D:\develop\env\nodejs\npm.CMD
Browsers:
Chrome: 133.0.6943.127
Internet Explorer: 11.0.17763.2989

@jikkai
Copy link
Member

jikkai commented Feb 25, 2025

According to our community guidelines, any issues that do not include a reproduction link and fail to provide reproducible steps will be closed.

@jikkai jikkai closed this as completed Feb 25, 2025
@jikkai jikkai added need reproduction and removed bug Something isn't working labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants