Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIME breaking with 'class' declaration as it is without 'use strict mode' #170

Closed
ryu047 opened this issue Sep 13, 2017 · 1 comment
Closed

Comments

@ryu047
Copy link

ryu047 commented Sep 13, 2017

MIME module is breaking at class declaration, as it is expecting use strict mode.

Error states:

class Mime {
^^^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
@ryu047 ryu047 changed the title MIME breaking with class declaration as it is without use strict mode MIME breaking with 'class' declaration as it is without 'use strict mode' Sep 13, 2017
@broofa
Copy link
Owner

broofa commented Sep 13, 2017

Looks like this is a node version issue? I'm using ES6 class, let, const, and template literals in v2. You'll need node@>=6.

I can add 'use strict'; (and may do so for forms sake), but it just surfaces other ES6-related issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants