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

browserify:app task fails #2

Open
fhightower opened this issue Aug 10, 2017 · 0 comments
Open

browserify:app task fails #2

fhightower opened this issue Aug 10, 2017 · 0 comments

Comments

@fhightower
Copy link

Even after having fixed #1 , I am still getting the following error when trying to build the app (grunt build:dist):

Running "browserify:libs" (browserify) task
>> Bundle TCS_-_SampleApp_v1.0/ui/scripts/libs.js created.

Running "browserify:app" (browserify) task
>> /.../TCS_-_SampleApp/node_modules/ng2-device-detector/index.js:1
>> import { Injectable, NgModule } from '@angular/core';
>> ^
>> ParseError: 'import' and 'export' may appear only with 'sourceType: module'
Warning: Error running grunt-browserify. Use --force to continue.

I have setup my dev environment using the script here: https://gist.github.com/fhightower/9ae9438ff7bad53ae6bae6a32385842e

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

1 participant