Skip to content

ant-design-vue cannot be used in browser introduction mode according to the tutorial on the official website. #6508

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

Closed
1 task done
gsdukbh opened this issue Apr 26, 2023 · 2 comments
Labels

Comments

@gsdukbh
Copy link

gsdukbh commented Apr 26, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.19

Environment

window 11,Chrome 112.0.5615.138 ,vue 3.2.47

Reproduction link

https://github.com/gsdukbh/issue/blob/main/ant-design-vue/3.2.19-TEST-bug.html

Steps to reproduce

Example:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.global.min.js"></script>
<script src="https://unpkg.com/dayjs/dayjs.min.js"></script>
<script src="https://unpkg.com/dayjs/plugin/customParseFormat.js"></script>
<script src="https://unpkg.com/dayjs/plugin/weekday.js"></script>
<script src="https://unpkg.com/dayjs/plugin/localeData.js"></script>
<script src="https://unpkg.com/dayjs/plugin/weekOfYear.js"></script>
<script src="https://unpkg.com/dayjs/plugin/weekYear.js"></script>
<script src="https://unpkg.com/dayjs/plugin/advancedFormat.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.css">
</head>
<body>
<div id="app">{{ message }}
<a-button type="primary">Primary Button</a-button>
</div>

</body>
<script >

Vue.createApp({
data() {
return {
message: 'Hello Vue.js!'
}
}
}).mount('#app');

</script>

</html>

What is expected?

Normal display Button component,

What is actually happening?

Only the text of the button is displayed,

Console tips:

caught TypeError: Cannot read properties of undefined (reading '$i')
at w.extend (dayjs.min.js:1:6557)
at 9502 (dayjs.ts:16:1)
at d (bootstrap:19:22)
at 4449 (index.js:3:18)
at d (bootstrap:19:22)
at startup:4:27
at universalModuleDefinition:11:1
at universalModuleDefinition:9:18
at universalModuleDefinition:1:1
@tangjinzhou
Copy link
Member

add <script src="https://unpkg.com/dayjs/plugin/quarterOfYear.js"></script>

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants