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

import {Toasty} from './src/toasty.container'; ^ ParseError: 'import' and 'export' may appear only with 'sourceType: module' #24

Closed
rtm opened this issue Jul 27, 2016 · 3 comments

Comments

@rtm
Copy link

rtm commented Jul 27, 2016

After installing ng2-toasty, a build gives me the following error:

/home/rtm/repos/triconinfotech/hitouch/node_modules/ng2-toasty/ng2-toasty.ts:7
import {Toasty} from './src/toasty.container';
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'

My tsconfig.json file is bare-bones, with neither files/filesGlob/excludes entries.

Do I need to do something with the gulpfile?
This is angular2 with ionic2 if that matters.

@NathofGod
Copy link

I'm having the same issue. Compiling with Browserify

......./node_modules/ng2-toasty/ng2-toasty.ts:7 import {Toasty} from './src/toasty.container'; ^ ParseError: 'import' and 'export' may appear only with 'sourceType: module'

@akserg
Copy link
Owner

akserg commented Jul 28, 2016

I need to remove the source code from the build. Will do it tomorrow.
Thanks.

@akserg
Copy link
Owner

akserg commented Sep 19, 2016

Please use 2.0.0 release to confirm that issue is gone.

@akserg akserg closed this as completed Sep 22, 2016
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

3 participants