You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in #3451 I encountered this error when trying to compile a large project with --jscomp_error=*
The project is private and I cannot share its codebase and not sure how to extract a minimal repro code, compiling just the affected file does not raise any errors.
Apologises this doesn't make a proper report, if you can direct me I'll be happy to expand on it.
java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.
null
Node(EXPORT): file.js:4:0
export default {
Parent(MODULE_BODY): file.js:4:0
export default {
at com.google.common.base.Preconditions.checkState(Preconditions.java:491)
at com.google.javascript.jscomp.lint.CheckNoMutatedEs6Exports.visitExport(CheckNoMutatedEs6Exports.java:117)
at com.google.javascript.jscomp.lint.CheckNoMutatedEs6Exports.shouldTraverse(CheckNoMutatedEs6Exports.java:85)
at com.google.javascript.jscomp.CombinedCompilerPass$CallbackWrapper.shouldTraverseIfActive(CombinedCompilerPass.java:130)
at com.google.javascript.jscomp.CombinedCompilerPass.shouldTraverse(CombinedCompilerPass.java:169)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:851)
at com.google.javascript.jscomp.NodeTraversal.traverseChildren(NodeTraversal.java:979)
at com.google.javascript.jscomp.NodeTraversal.handleModule(NodeTraversal.java:829)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:845)
at com.google.javascript.jscomp.NodeTraversal.traverseChildren(NodeTraversal.java:979)
at com.google.javascript.jscomp.NodeTraversal.handleScript(NodeTraversal.java:804)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:839)
at com.google.javascript.jscomp.NodeTraversal.traverseChildren(NodeTraversal.java:979)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:863)
at com.google.javascript.jscomp.NodeTraversal.traverse(NodeTraversal.java:371)
at com.google.javascript.jscomp.NodeTraversal.traverse(NodeTraversal.java:381)
at com.google.javascript.jscomp.CombinedCompilerPass.process(CombinedCompilerPass.java:154)
at com.google.javascript.jscomp.PhaseOptimizer$NamedPass.process(PhaseOptimizer.java:326)
at com.google.javascript.jscomp.PhaseOptimizer.process(PhaseOptimizer.java:235)
at com.google.javascript.jscomp.Compiler.check(Compiler.java:1022)
at com.google.javascript.jscomp.Compiler.performChecksAndTranspilation(Compiler.java:822)
at com.google.javascript.jscomp.Compiler.lambda$stage1Passes$0(Compiler.java:752)
at com.google.javascript.jscomp.CompilerExecutor$2.call(CompilerExecutor.java:102)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException
... 27 more
file.js only exports a JSON object, not terribly large or deep, line 4 is the export declaration:
/**
* @dict
*/
export default {
// ...
};
Without jscomp_error the project compiles fine with no warnings.
The text was updated successfully, but these errors were encountered:
As mentioned in #3451 I encountered this error when trying to compile a large project with
--jscomp_error=*
The project is private and I cannot share its codebase and not sure how to extract a minimal repro code, compiling just the affected file does not raise any errors.
Apologises this doesn't make a proper report, if you can direct me I'll be happy to expand on it.
Compiler version:
v20190729
Full list of options:
Stack trace:
file.js only exports a JSON object, not terribly large or deep, line 4 is the export declaration:
Without
jscomp_error
the project compiles fine with no warnings.The text was updated successfully, but these errors were encountered: