Giter Site home page Giter Site logo

Comments (10)

arielfaur avatar arielfaur commented on September 4, 2024

Are you trying the builtin project? Or is it a new project started from scratch?

from ionic-audio.

yuyinitos avatar yuyinitos commented on September 4, 2024

I started a new v2 project from scratch using .js files.

from ionic-audio.

arielfaur avatar arielfaur commented on September 4, 2024

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.

yuyinitos avatar yuyinitos commented on September 4, 2024

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.

arielfaur avatar arielfaur commented on September 4, 2024

Basic questions: you did run npm install prior to building right? Are the hook files available within hooks folder?

from ionic-audio.

yuyinitos avatar yuyinitos commented on September 4, 2024

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.

arielfaur avatar arielfaur commented on September 4, 2024

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.

yuyinitos avatar yuyinitos commented on September 4, 2024

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.

arielfaur avatar arielfaur commented on September 4, 2024

Ok, good to hear So it seems then that using the --ts flag is compulsory

from ionic-audio.

yuyinitos avatar yuyinitos commented on September 4, 2024

Yes it seems like it.

from ionic-audio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.