question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exceptions in 0.5.0

See original GitHub issue

After Updating to v0.5.0 I get a lot of errors while minifying single files:

TypeError: unknown: Cannot read property 'contexts' of null
    at NodePath._getQueueContexts (D:\WiFiSpot\node_modules\babel-traverse\lib\path\context.js:278:21)
    at NodePath._containerInsert (D:\WiFiSpot\node_modules\babel-traverse\lib\path\modification.js:94:23)
    at NodePath._containerInsertBefore (D:\WiFiSpot\node_modules\babel-traverse\lib\path\modification.js:137:15)
    at NodePath.insertBefore (D:\WiFiSpot\node_modules\babel-traverse\lib\path\modification.js:56:19)
    at NodePath.unshiftContainer (D:\WiFiSpot\node_modules\babel-traverse\lib\path\modification.js:239:15)
    at BuiltInReplacer.replace (D:\WiFiSpot\node_modules\babel-plugin-minify-builtins\lib\index.js:164:22)
    at PluginPass.exit (D:\WiFiSpot\node_modules\babel-plugin-minify-builtins\lib\index.js:205:27)
    at newFn (D:\WiFiSpot\node_modules\babel-traverse\lib\visitors.js:276:21)
    at NodePath._call (D:\WiFiSpot\node_modules\babel-traverse\lib\path\context.js:76:18)
    at NodePath.call (D:\WiFiSpot\node_modules\babel-traverse\lib\path\context.js:48:17)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

1reaction
seanmorriscommented, Nov 29, 2018

Disabling the “builtIn” plugin seems to suppress the error. I’m using brunch so here’s my working config:

exports.plugins = {
  babel: {
    'presets': ['es2015'],
    'env': {
      'production': {
        'presets': [['minify', {
          'builtIns': false
        }]]
      }
    }
  },
};
1reaction
rahbaricommented, Nov 18, 2018

@rv-jbaker @JeffML The problem is babel core and some modules (Not babel-preset-minifiy) have new package names and you just don’t get new version with npm update, for example:

	"@babel/core": "^7.1.6",
	"@babel/plugin-syntax-object-rest-spread": "^7.0.0",
	"@babel/plugin-transform-modules-commonjs": "^7.1.0",
	"babel-preset-minify": "^0.5.0",

Total mess 😃)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for aiosfstream.exceptions
Source code for aiosfstream.exceptions. """Exception types Exception hierarchy:: AiosfstreamException AuthenticationError ClientError ClientInvalidOperation ...
Read more >
ConfigurationException (smart-exceptions 0.5.0 API) - smartics
This configuration exception is thrown if the system encountered an inconsistent configuration or configuration information was missing. Author: Robert Reiner ...
Read more >
controller runtime log has exceptions when startup in pravega 0.5.0 ...
Hi when I start SegmentStore server first before the controller server starts, the exception above disappear...but...the SegmentStore server log has exceptions ...
Read more >
fanforce-exceptions | RubyGems.org | your community gem host
fanforce-exceptions 0.5.0. Internal exceptions used by the Fanforce codebase. Versions: 0.8.0 - September 12, 2014 (6.5 KB); 0.7.0 - August 23, ...
Read more >
820587 – dev-python/unasync-0.5.0 - Could not import ...
Extension error: Could not import extension sphinxcontrib_trio (exception: No module named 'sphinxcontrib_trio') * ERROR: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found