cordova-plugin-toast icon indicating copy to clipboard operation
cordova-plugin-toast copied to clipboard

toast.js not found after installation and build (OSX)

Open DrNio13 opened this issue 7 years ago • 5 comments

Hi :) I want to use your awesome framework, but I am having some issues after installing and configuring everything. Perhaps, I am doing something wrong or perhaps there is an issue when i run browser emulator on my MacBook ?

screen shot 2017-11-08 at 23 29 04 screen shot 2017-11-08 at 23 26 36 screen shot 2017-11-08 at 23 54 10

I followed the docs and i also used the compile command https://github.com/Samsung/cordova-plugin-toast/wiki/Prepare-to-start#compile

Any ideas ? The project structure is correct ?

cordova.js is loaded perfectly, i am only having trouble with toast.js.

Thanks in advace! Looking forward to use your library :)

DrNio13 avatar Nov 09 '17 18:11 DrNio13

Hi, I tried again to install the app by executing the .sh in OSX. The installation was good but when i was trying to grunt compile i was getting errors that a node package was missing. First it was the 'inquirer' then several others like 'xml2js', 'js2xmlparser', 'mustache', 'zip-dir'.

After installing all these npm packages manually foreach folder, when i tried to grunt compile finally i was asked about the name of the application, resolution and other details.

After I finished submitting all the details i run cordova emulate browser and still toast.js is giving me 404.

Any ideas ?

DrNio13 avatar Nov 19 '17 19:11 DrNio13

I have similar issues with npm modules such as xml2js and then mustache etc.

Can the contributors please give a reply on this issue as several people has this issue across many issues on github.

I ran the gettingStarted.sh script - That is a good way to reproduce the error.

I am using npm 5.2.0 and node v8.9.0

@prozanne @heonie @sukyunglee @darangkim @pwsses

viperfx avatar Dec 09 '17 09:12 viperfx

Hello everyone!

I just begun to develop a project for smart TVs using TOAST. And yes, at the begin I ran into several issues related to dependency installs. What solved my problems was to upgrade the dependencies. I ran $ npm audit to check what dependencies need to be upgraded and then i just upgrade them. After that i was able to build and emulate my app through $ sudo cordova build browser and $sudo cordova emulate browser. I hope this can help someone else.

HelaGone avatar Jun 27 '18 23:06 HelaGone

@HelaGone what do you mean by npm audit, there is no such command in npm.

dyanakiev avatar Jul 09 '18 12:07 dyanakiev

@dyanakiev mmm of course there is. Here: https://docs.npmjs.com/getting-started/running-a-security-audit https://docs.npmjs.com/cli/audit

HelaGone avatar Jul 09 '18 15:07 HelaGone