error: Cannot read property 'isIfStatement' of null
See original GitHub issueBug Report
Current Behavior babel-preset-minify Cannot read property ‘isIfStatement’ of null
Input Code https://github.com/eeve/test.v2
// module-a.js
export default function () {
return 1;
}
Babel Configuration (.babelrc, package.json, cli command)
{
"presets": [
[
"@babel/preset-env",
{
"debug": true,
"useBuiltIns": "usage",
"targets": {
"node": 6
}
}
],
"minify"
],
"sourceMaps": "inline"
}
Environment
- Babel version(s): v7.0.0-beta.47
- Node/npm version: Node 8.9.4/npm 6.0.0
- Monorepo: no
- How you are using Babel:
cli
Additional context/Screenshots
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property of null - iDiallo
This will result in Uncaught TypeError: Cannot read property 'value' of null . The reason will be that the element with id input...
Read more >Error: Cannot read property of null - Stack Overflow
start to this.props.start , the error goes away but the board does not render . How can I resolve this situation ?
Read more >if...else - JavaScript - MDN Web Docs - Mozilla
To execute no statements, use an empty statement. statement2. Statement that is executed if condition is falsy and the else clause exists.
Read more >typeerror can not read property x of null - YouTube
Join this channel to get access to perks:https://www.youtube.com/channel/UCoSpmr2KNOxjwE_B9ynUmig/joinMy GearCamera ...
Read more >babel/types
elements : Array<null | Expression | SpreadElement> (default: [] ) ... Aliases: Standardized , Property , Accessor ... isIfStatement(node, opts) and t.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When will this be fixed on the main branch?
Still the same issue for me. Please re-open.