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

Unexpected token @. Expected identifier, string literal, numeric literal #184

Open
codersth opened this issue Dec 2, 2024 · 1 comment

Comments

@codersth
Copy link

codersth commented Dec 2, 2024

无法使用注释。

/**
 * @desc 提示消息 (只展示最新的消息)
 * @param {}
 */
showNotify({ content, urlAndParams: { url, params }, id } = {}) {}

=========================日志================================
File: F:\developer\workspace\h5\xxxx\src\frontPage\views\index\Index.vue?vue&type=script&lang=js:1:1
× Module build failed:
├─▶ × × Unexpected token @. Expected identifier, string literal, numeric literal or [ for the computed key
│ │ ╭─[F:\developer\workspace\h5\xxxx\src\frontPage\views\index\Index.vue:930:1]
│ │ 927 │ * @desc 点击查看更多
│ │ 928 │ * @param {数据模块参数}
│ │ 929 │ */
│ │ 930 │ @GuestAndOrgInterceptors('guestAndLoginDialog')
│ │ · ─
│ │ 931 │ onMore({ name, value, otherName, isOtherName } = {}) {
│ │ 932 │ if (value == 'DynamicBills') {
│ │ 932 │ localStorage.setItem('defaultMenu', 'dailyReview')
│ │ ╰────
│ │

╰─▶ Syntax Error

@chenjiahan
Copy link
Member

Hello. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants