Comments (10)
Are you trying the builtin project? Or is it a new project started from scratch?
from ionic-audio.
I started a new v2 project from scratch using .js files.
from ionic-audio.
Could you please copy the demo
folder that ships with the module as is and try to build it? Let's see if the same error is thrown.
On the other hand, you created an ES6 project with Ionic right? (you didn't use the --ts flag)
from ionic-audio.
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.
√ Installed platform ios
Installing cordova-plugin-device
Installing cordova-plugin-console
Installing cordova-plugin-whitelist
Installing cordova-plugin-splashscreen
Installing cordova-plugin-statusbar
Installing ionic-plugin-keyboard
Running command: /Users/Eugene/Code/demo/hooks/after_prepare/010_add_platform_class.js /Users/Eugene/Code/demo
Error: spawn EACCES
from ionic-audio.
Basic questions: you did run npm install
prior to building right? Are the hook files available within hooks
folder?
from ionic-audio.
Sorry, it's getting late over here ;) I ran npm install
. Then ionic build
and these erros appear.
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.
TypeScript error: /Users/Eugene/Code/demo/app/pages/page2/page2.ts(9,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.
TypeScript error: /Users/Eugene/Code/demo/app/pages/page3/page3.ts(9,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.
TypeScript error: /Users/Eugene/Code/demo/app/pages/tabs/tabs.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.
TypeScript error: /Users/Eugene/Code/demo/node_modules/ionic-audio/dist/ionic-audio-cordova-track.ts(15,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.
TypeScript error: /Users/Eugene/Code/demo/node_modules/ionic-audio/dist/ionic-audio-cordova-track.ts(95,14): Error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
etc., etc.
from ionic-audio.
OK, i think there are a lot of errors somehow related to the environment. I've never seen these before.
One thing you could try is start a fresh ionic 2 typescript project from scratch (using both --v2 and --ts flags). That way we're certain the environment is correct, install ionic-audio with npm, and then either copy the source files from demo
into the new project folder, or create new pages yourself.
from ionic-audio.
I started a new v2 typescript project and added ionic-audio to it and it works fine! Thanks a lot for your help!
from ionic-audio.
Ok, good to hear So it seems then that using the --ts
flag is compulsory
from ionic-audio.
Yes it seems like it.
from ionic-audio.
Related Issues (20)
- Adjust speed of playing track HOT 2
- Structure of this._audioProvider.tracks duration seeking
- problem in play
- I have an error when it comes to template parsing errors.
- Customize UI of the provided html tags
- How can I post all of the tracks playing at the same time?
- Want to stop any audio properly
- Not able to Play M3u Files . HOT 1
- on iOS lock screen, I can't play the audio
- Ionic 4 version? HOT 10
- Are there any way to have two audioProvider?
- I can't change the progress if the file is saved under assets/
- it doesn't work with local audio files, HOT 1
- preload metadata is not preloading tracks with local files - It works only on streaming HOT 1
- online audio file not working on device
- onFinish called while playing
- Cannot properly handle ExpressionChangedAfterItHasBeenCheckedError
- AudioProvider replace function
- Change volume
- ERROR in Error during template compile of 'IonicAudioModule'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-audio.