Gulp generate parse error on multiple files

Gulp generate parse error on multiple files

por Atif Matin -
Número de respostas: 4

I would really appreciate any help. I have done the following on two separate windows 7 64 bit installations:

cloned moodlemobile 2

followed instructions in custom moodle mobile development

without making any changes I get stuck on gulp default task on multiple files (first one was filepool.js, I removed it from the core, then it got stuck on another one, then another etc) They have different line number with unexpected token but rest is same. I have copied an example below. All help will be highly appreciated.


C:\Users\Atif\Documents\moodlemobile2>gulp
[01:59:03] Using gulpfile ~\Documents\moodlemobile2\gulpfile.js
[01:59:03] Starting 'build'...
[01:59:03] Finished 'build' after 35 ms
[01:59:03] Starting 'sass-build'...
[01:59:03] Starting 'lang'...
[01:59:03] Finished 'lang' after 80 ms

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: app.js: error: couldn't process source due to parse error
Unexpected token (50:8)


Em resposta a 'Atif Matin'

Re: Gulp generate parse error on multiple files

por Juan Leyva -
Foto de Core developers Foto de Moodle HQ Foto de Plugin developers Foto de Testers

Hi,

are you sure that you didn't any change to those files?

It's really really strange, I'd suggest you to download a zip directly from github and overwrite the files to see if it works

Juan

Em resposta a 'Juan Leyva'

Re: Gulp generate parse error on multiple files

por srinath vs -

[15:44:20] Starting 'build'...

[15:44:20] Starting 'sass-build'...

[15:44:20] Starting 'lang'...

[15:44:20] Finished 'lang' after 65 ms

[15:44:22] Finished 'sass-build' after 2.6 s

[15:44:22] Starting 'sass'...


events.js:85

      throw er; // Unhandled 'error' event

            ^

Error: util.js: error: couldn't process source due to parse error

Deleting local variable in strict mode (220:20)

which is downloaded from git i tried a lot but am not able resolve this can u please give a suggestion 



Em resposta a 'srinath vs'

Re: Gulp generate parse error on multiple files

por Juan Leyva -
Foto de Core developers Foto de Moodle HQ Foto de Plugin developers Foto de Testers

Hi,

I just tested the latest version in Windows (Windows 8.1) and gulp works fine, I cannot test in Windows 7 sorry

What version of Node is installed in your computer? Please, review again your requeriments and this guide:

https://docs.moodle.org/dev/Setting_up_your_development_environment_for_Moodle_Mobile_2#Requirements

Juan