Uncaught SyntaxError: Missing initializer in const declaration
See original GitHub issueExpected Behavior
Working
Current Behavior
After clinic as run the html report is broken with error.
14030.clinic-doctor.html:7476 Uncaught SyntaxError: Missing initializer in const declaration
This error happen with doctor and with bubbleproof.
Steps to Reproduce (for bugs)
- clinic doctor – node yourscript
- ctrl + c
- open the report in chrome
- error in console
N.B: also broken on your website 😕
Sample upload
This has nothing to do with report, it’s working once all js errors are fixed
Environment
- Clinic.js version: 6.0.0
- Node.js version:12.16.1
- Browser name and version: Chrome Version 83.0.4103.61 (Official Build) (64-bit)
- Operating system and version: osx catalina 10.15.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
SyntaxError: missing = in const declaration - JavaScript | MDN
The JavaScript exception "missing = in const declaration" occurs when a const declaration was not given a value in the same statement (like ......
Read more >Missing initializer in const declaration in node js - Stack Overflow
In javascript, you can't assign value to 'const' later after it's declaration. You're bound to assign the value to const on the declaration...
Read more >Missing initializer in const declaration' mean in JavaScript?
Somewhat surprisingly for a syntax error, it means exactly what it says: you tried to declare a const variable, and you neglected to...
Read more >JavaScript SyntaxError - Missing = in const declaration
This JavaScript exception missing = in const declaration occurs if a const is declared and value is not provided(like const ABC_DEF;). Need to ......
Read more >SyntaxError: missing = in const declaration - JavaScript
The JavaScript exception "missing = in const declaration" occurs when a const declaration was not given a value in the same statement (like...
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
@bodinsamuel Came across the same issue and I found a temporary fix.
I searched all scripts inside the last script tag in the html, found
const EventEmitter,
, and replaced them all withconst EventEmitter=require('events'),
. After that everything was fine.I guess this is a babel issue but I cannot pinpoint where the problem is. Anyways, hope this helps.
Should have a fix in by Monday end of day.