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

CLOSURE - parse error on optional chaining operator #178

Open
mightycoco opened this issue Sep 3, 2024 · 0 comments
Open

CLOSURE - parse error on optional chaining operator #178

mightycoco opened this issue Sep 3, 2024 · 0 comments

Comments

@mightycoco
Copy link

mightycoco commented Sep 3, 2024

I'm getting a parsing error on optional chaining operators:

[INFO] --- minify:1.7.6:minify (default-minify) @ maven-project ---
[INFO] Starting CSS task:
[INFO] Starting JavaScript task:
[INFO] Skipping the merge step...
[INFO] Creating the minified file [base.min.js].
Sep 03, 2024 9:02:33 AM com.google.javascript.jscomp.LoggerErrorManager println
SEVERE: base.js:547: ERROR - Parse error. primary expression expected
                                title: itemData.disable?.title?.title ? "" : $.htmlEncode(itemData.title)
                                                         ^

with this configuration

<executions>
    <execution>
    <id>default-minify</id>
    <phase>process-resources</phase>
    <configuration>
        <charset>UTF-8</charset>
        <jsEngine>CLOSURE</jsEngine>
        <jsSourceDir>./</jsSourceDir>
        <yuiDisableOptimizations>true</yuiDisableOptimizations>
        <skipMerge>true</skipMerge>
        <yuiNoMunge>true</yuiNoMunge>
        <webappSourceDir>${project.basedir}/src/shared/js</webappSourceDir>
        <jsSourceIncludes>
            <jsSourceInclude>**/*.js</jsSourceInclude>
        </jsSourceIncludes>
        <jsSourceExcludes>
            <jsSourceExclude>**/*.min.js</jsSourceExclude>
            <jsSourceExclude>**/*-min.js</jsSourceExclude>
        </jsSourceExcludes>
        <jsTargetDir>shared/js</jsTargetDir>
    </configuration>
    <goals>
        <goal>minify</goal>
    </goals>
    </execution>
</executions>
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

1 participant