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 Report] Expression expected #58

Closed
Sunny-117 opened this issue Sep 23, 2024 · 3 comments
Closed

[BUG Report] Expression expected #58

Sunny-117 opened this issue Sep 23, 2024 · 3 comments

Comments

@Sunny-117
Copy link

image

swc-loader@0.2.6

@Sunny-117
Copy link
Author

{
    "$schema": "https://swc.rs/schema.json",
    "jsc": {
        "parser": {
            "syntax": "ecmascript",
            "jsx": false,
            "dynamicImport": false,
            "privateMethod": false,
            "functionBind": false,
            "exportDefaultFrom": false,
            "exportNamespaceFrom": false,
            "decorators": false,
            "decoratorsBeforeExport": false,
            "topLevelAwait": false,
            "importMeta": false
        },
        "transform": null,
        "target": "es5",
        "loose": false,
        "externalHelpers": false,
        // Requires v1.2.50 or upper and requires target to be es2016 or upper.
        "keepClassNames": false
    },
    "minify": false
}

@Sunny-117 Sunny-117 changed the title Expression expected [BUG Report] Expression expected Sep 23, 2024
@Sunny-117
Copy link
Author

Caused by:
    Syntax Error
 @ ./src/__ocpc__/entry/components.ts 18:0-84 23:0-366
 @ container entry

ERROR in ./src/__ocpc__/containers/ocpcPackageList/columns/ocpcBidType.js
Module build failed (from ../../node_modules/.pnpm/swc-loader@0.2.6_@swc+core@1.7.23+webpack@5.13.0/node_modules/swc-loader/src/index.js):
Error:   × Expression expected
    ╭─[/Users/olive/Des-center/src/__ocpc__/containers/ocpcPackageList/columns/ocpcBidType.js:20:1]
 17 │ export default {
 18 │     render: createCustomRender((configs, {trigger}) => {
 19 │         return withSumAndEmptyExpanedCell((value, record) => {
 20 │             const Node = <span>{bidTypeText[value] || '-'}</span>;
    ·                          ─
 21 │             return Node;
 22 │         });
 23 │     }),
    ╰────
  × Unexpected token `[`. Expected ... , *,  (, [, :, , ?, = or an identifier
    ╭─[/Users/olive/Desktop/bs/assets-center/src/__ocpc__/containers/ocpcPackageList/columns/ocpcBidType.js:20:1]
 17 │ export default {
 18 │     render: createCustomRender((configs, {trigger}) => {
 19 │         return withSumAndEmptyExpanedCell((value, record) => {
 20 │             const Node = <span>{bidTypeText[value] || '-'}</span>;
    ·                                            ─
 21 │             return Node;
 22 │         });
 23 │     }),

@kdy1
Copy link
Member

kdy1 commented Sep 23, 2024

Please file an issue on https://github.com/swc-project/swc instead.

@kdy1 kdy1 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
kdy1 added a commit that referenced this issue Oct 22, 2024
kdy1 added a commit that referenced this issue Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants