-
Notifications
You must be signed in to change notification settings - Fork 163
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
Parse error when building #49
Comments
Are you trying the builtin project? Or is it a new project started from scratch? |
I started a new v2 project from scratch using .js files. |
Could you please copy the |
I didn't use the --ts flag to create my project. I'm not sure if I can use both .js and .ts files in my project? When I try to build the demo app I run into: ∆ Installing ios for you. |
Basic questions: you did run |
Sorry, it's getting late over here ;) I ran TypeScript error: /Users/Eugene/Code/demo/app/pages/page1/page1.ts(10,14): Error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning. |
OK, i think there are a lot of errors somehow related to the environment. I've never seen these before. |
I started a new v2 typescript project and added ionic-audio to it and it works fine! Thanks a lot for your help! |
Ok, good to hear So it seems then that using the |
Yes it seems like it. |
After modifying the gulp file with:
`gulp.task('watch', ['clean'], function(done){
runSequence(
['sass', 'html', 'fonts', 'scripts'],
function(){
gulpWatch('app//*.scss', function(){ gulp.start('sass'); });
gulpWatch('app//*.html', function(){ gulp.start('html'); });
buildBrowserify({
watch: true,
src: ['./app/app.js', './node_modules/ionic-audio/dist/ionic-audio.ts', './node_modules/ionic-audio/typings/main.d.ts']
}).on('end', done);
}
);
});
gulp.task('build', ['clean'], function(done){
runSequence(
['sass', 'html', 'fonts', 'scripts'],
function(){
buildBrowserify({
minify: isRelease,
browserifyOptions: {
debug: !isRelease
},
uglifyOptions: {
mangle: false
},
src: ['./app/app.js', './node_modules/ionic-audio/dist/ionic-audio.ts', './node_modules/ionic-audio/typings/main.d.ts']
}).on('end', done);
}
);
});
`
I'm getting this parse error:
...node_modules/ionic-audio/dist/ionic-audio.ts:8 export * from './ionic-audio-interfaces'; ^ ParseError: 'import' and 'export' may appear only with 'sourceType: module'
The text was updated successfully, but these errors were encountered: