Replies: 2 comments
-
The 'q' is a minimized name for the variable The original error message is I am not sure if the error is related to webworkers, it could be. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I also have the same problem. After opening the source map, the abnormal prompt is as follows // vite.config.ts
build: {
sourcemap: true,
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes("node_modules")) {
return id
.toString()
.split("node_modules/")[1]
.split("/")[0]
.toString();
}
},
},
},
},
//file: @ant-design/x/es/theme/useToken.js
import { createTheme, useCacheToken } from '@ant-design/cssinjs';
import { theme as antdTheme } from 'antd';
import { ignore, unitless } from 'antd/es/theme/useToken';
import formatToken from 'antd/es/theme/util/alias';
import React from 'react';
import version from "../version";
const defaultTheme = createTheme(antdTheme.defaultAlgorithm);
const preserve = {
screenXS: true,
screenXSMin: true,
screenXSMax: true,
screenSM: true,
screenSMMin: true,
screenSMMax: true,
screenMD: true,
screenMDMin: true,
screenMDMax: true,
screenLG: true,
screenLGMin: true,
screenLGMax: true,
screenXL: true,
screenXLMin: true,
screenXLMax: true,
screenXXL: true,
screenXXLMin: true
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
/Users/snackpub/.nvm/versions/node/v22.0.0/bin/npm run build
vite v4.5.3 building for production...
....
....
dist/assets/index-9eec0092.js 423.95 kB │ gzip: 66.55 kB
dist/assets/_element-plus-4af785c9.js 494.99 kB │ gzip: 157.97 kB
dist/assets/__vendor-05a52676.js 1,174.73 kB │ gzip: 404.93 kB
✓ built in 30.32s
Process finished with exit code 0
This error occurred when I built dist to access this address, and I couldn't understand the problem:
Reproduction
no
Steps to reproduce
/Users/snackpub/.nvm/versions/node/v22.0.0/bin/npm run build
vite v4.5.3 building for production...
System Info
Used Package Manager
npm
Logs
__vendor_vue-a6d261fb.js:13 Uncaught ReferenceError: Cannot access 'q' before initialization
at Ts (__vendor_vue-a6d261fb.js:13:10632)
at __vendor-05a52676.js:47:13069
Validations
Beta Was this translation helpful? Give feedback.
All reactions