Production Bundle is failing after upgrading to react-helmet-async from 1.3.0 to 2.0.4.
Meteor Version: METEOR@2.13.3
Minifier: @zodern :standard-minifier-js@4.1.1
Complete Error Log:
Errors prevented bundling:
While minifying app code:
.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-mangle-names/lib/scope-tracker.js:47:34:
unknown: Cannot read property 'add' of undefined while minifying packages/modules.js
at ScopeTracker.addReference
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-mangle-names/lib/scope-tracker.js:47:34)
at ReferencedIdentifier
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-mangle-names/lib/index.js:196:26)
at newFn
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/visitors.js:212:17)
at bfsTraverse
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-mangle-names/lib/bfs-traverse.js:32:43)
at Mangler.collect
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-mangle-names/lib/index.js:229:7)
at Mangler.run
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-mangle-names/lib/index.js:54:12)
at PluginPass.exit
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-mangle-names/lib/index.js:558:19)
at newFn
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/visitors.js:171:21)
at NodePath._call
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:53:20)
at NodePath.call
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:40:17)
at NodePath.visit
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:99:8)
at TraversalContext.visitQueue
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:99:16)
at TraversalContext.visitSingle
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:73:19)
at TraversalContext.visit
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:127:19)
at Function.traverse.node
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:17)
at traverse
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:56:12)
at transformFile
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:105:29)
at transformFile.next (<anonymous>)
at run
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:33:12)
at run.next (<anonymous>)
at Function.<anonymous>
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast.js:26:41)
at Generator.next (<anonymous>)
at evaluateSync
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/gensync/index.js:251:28)
at Function.sync
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/gensync/index.js:89:14)
at Object.transformFromAst
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast.js:36:35)
at Object.minify
(.meteor/packages/zodern_standard-minifier-js/.4.1.1.1e79i0p.oiao++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/babel-compiler/node_modules/@meteorjs/babel/index.js:185:33)
at Object.minify (packages/babel-compiler.js:59:29)
at meteorJsMinify (packages/zodern_minifier-js.js:70:29)
at MeteorBabelMinifier.minifyOneFile (packages/fastMinifier/plugin/minify-js.js:31:12)
at packages/zodern:caching-minifier/caching-minifier.js:59:23
at Function.Profile.time (packages/zodern:caching-minifier/caching-minifier.js:14:5)
at MeteorBabelMinifier.minifyFile (packages/zodern:caching-minifier/caching-minifier.js:58:15)
at packages/fastMinifier/plugin/minify-js.js:167:27
at Function.Profile.time (packages/fastMinifier/plugin/minify-js.js:12:5)
at packages/fastMinifier/plugin/minify-js.js:166:17
at Array.forEach (<anonymous>)
at MeteorBabelMinifier.<anonymous> (packages/fastMinifier/plugin/minify-js.js:147:9)
at MeteorBabelMinifier.processFilesForBundle (packages/fastMinifier/plugin/minify-js.js:8:19)