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

How to make ES2015 Import statements work. #214

Open
1 task
PedroPovedaQ opened this issue Mar 31, 2017 · 1 comment
Open
1 task

How to make ES2015 Import statements work. #214

PedroPovedaQ opened this issue Mar 31, 2017 · 1 comment

Comments

@PedroPovedaQ
Copy link

PedroPovedaQ commented Mar 31, 2017

Issue details

Hi, what must I add to my gulp configuration so that import and export statements work? I have ES2015 Classes working already, but when I try to import something I get: refunds.modal.controller.js:1 Uncaught SyntaxError: Unexpected token import

Steps to reproduce/test case

Import any module. E.G: import angular from 'angular';

Please specify which version of generator-hottowel, node and npm you're running

  • [0.0.11 ] generator-hottowel
  • [7.4.0 ] Node
  • [ 4.0.5] Npm

Affected platforms

  • [ X] linux
  • [ X] windows
  • [ X] OS X
  • other (please specify which)

Which gulp command are you running ?

{gulp serve-dev}

@dashawk
Copy link

dashawk commented Aug 7, 2017

You need to install babel to transpile your ES2015 codes.

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