[Sugar-devel] Problem in setting the environment

Lionel Laské lionel.laske at gmail.com
Sat Feb 29 05:51:26 EST 2020


Hi Aayush,

Look like you're trying to run Sugarizer locally in your browser but you
don't give right permissions to do that.

See section " *Sugarizer Application into the Web Browser*" on
https://github.com/llaske/sugarizer/tree/dev#sugarizer-application

Regards.

           Lionel.

Le sam. 29 févr. 2020 à 10:45, <sugar-devel-request at lists.sugarlabs.org> a
écrit :

> Date: Fri, 28 Feb 2020 20:32:14 +0300
> From: Srevin Saju <srevin03 at gmail.com>
> To: Aayush Tyagi <tyagiaayush5 at gmail.com>
> Cc: Sugar-dev Devel <sugar-devel at lists.sugarlabs.org>
> Subject: Re: [Sugar-devel] Problem in setting the environment
> Message-ID:
>         <CANa8oYnsFERiS-CCUqa4iopcWnm95pcc=
> fKqx1gECmPT93Kung at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Thanks for the logs
> This seems to be related to sugarizer.
> Someone else who works on sugarizer might provide a better answer. Can you
> explain how you set up sugarizer? and Did you use `npm serve`  to serve
> sugarizer?
> and also, did you use this method?
> For Chrome, close ALL running instances of Chrome and re-launch it using
> the command line:
> chrome --allow-file-access-from-files  index.html
> On Windows, you should launch:
> "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
> --allow-file-access-from-files
> ~ sugarizer documentation
>
>
> On Fri, Feb 28, 2020 at 8:24 PM Aayush Tyagi <tyagiaayush5 at gmail.com>
> wrote:
>
> > Hi sir, thank you for replying. Here is the error.
> >
> > Access to XMLHttpRequest at
> > 'file:///C:/Users/aayus/Downloads/sugarizer-dev/locale.ini' from origin
> > 'null' has been blocked by CORS policy: Cross origin requests are only
> > supported for protocol schemes: http, data, chrome, chrome-extension,
> https.
> > webL10n.js:67 [l10n]
> > file:///C:/Users/aayus/Downloads/sugarizer-dev/locale.ini not found.
> > consoleWarn @ webL10n.js:67
> > locale.ini:1 Failed to load resource: net::ERR_FAILED
> > settings.js:106 Uncaught TypeError: Cannot read property 'sort' of
> > undefined
> >     at Object.settings.updateEntries (settings.js:106)
> >     at settings.js:93
> >     at Object.html5storage.load (sugarizer.js:273)
> >     at Object.settings.load (settings.js:48)
> >     at loadpreference (app.js:48)
> >     at app.js:67
> >     at Object.execCb (require.js:1604)
> >     at Module.check (require.js:844)
> >     at Module.<anonymous> (require.js:1084)
> >     at require.js:129
> > index.html:1 Access to XMLHttpRequest at
> > 'file:///C:/Users/aayus/Downloads/sugarizer-dev/locale.ini' from origin
> > 'null' has been blocked by CORS policy: Cross origin requests are only
> > supported for protocol schemes: http, data, chrome, chrome-extension,
> https.
> > webL10n.js:67 [l10n]
> > file:///C:/Users/aayus/Downloads/sugarizer-dev/locale.ini not found.
> > consoleWarn @ webL10n.js:67
> > locale.ini:1 Failed to load resource: net::ERR_FAILED
> >
> > On Fri, Feb 28, 2020 at 10:50 PM Srevin Saju <srevin03 at gmail.com> wrote:
> >
> >> Hello Aayush
> >> May I know what errors you have encountered while setting up the sugar
> >> desktop or the reason which you feel that sugar is not starting.
> >> Try to include logs so that adequate help can be provided
> >>
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200229/18694e89/attachment.htm>


More information about the Sugar-devel mailing list