Text: Bunch of errors and warnings during make

Created on 7 Jun 2019  Â·  15Comments  Â·  Source: nextcloud/text

The make command has a bunch of errors and it results in the Text app not working here. Let me know if you need more info to fix it @juliushaertl :)

jan@Rechenknecht:~/nextcloud/apps/text$ make
rm -f js/*
rm -rf node_modules
npm install

> [email protected] install /home/jan/nextcloud/apps/text/node_modules/node-sass
> node scripts/install.js

Cached binary found at /home/jan/.npm/node-sass/4.12.0/linux-x64-67_binding.node

> [email protected] postinstall /home/jan/nextcloud/apps/text/node_modules/core-js-pure
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> [email protected] postinstall /home/jan/nextcloud/apps/text/node_modules/node-sass
> node scripts/build.js

Binary found at /home/jan/nextcloud/apps/text/node_modules/node-sass/vendor/linux-x64-67/binding.node
Testing binary
Binary is fine

> [email protected] postinstall /home/jan/nextcloud/apps/text/node_modules/webpack-cli
> node ./bin/opencollective.js



                            Thanks for using Webpack!
                 Please consider donating to our Open Collective
                        to help us maintain this package.



                 Donate: https://opencollective.com/webpack/donate


npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1299 packages from 958 contributors in 37.117s
npm run lint

> [email protected] lint /home/jan/nextcloud/apps/text
> eslint --ext .js,.vue src


/home/jan/nextcloud/apps/text/src/components/Editor.vue
   25:33   warning  Attribute "v-if" should go before "id"                                                  vue/attributes-order
   30:1    error    Expected indentation of 4 tabs but found 5 tabs                                         vue/html-indent
   31:1    error    Expected indentation of 4 tabs but found 5 tabs                                         vue/html-indent
   32:1    error    Expected indentation of 4 tabs but found 5 tabs                                         vue/html-indent
   41:39   warning  Attribute "v-slot" should go before ":editor"                                           vue/attributes-order
   41:71   warning  Attribute "v-if" should go before ":editor"                                             vue/attributes-order
   43:7    warning  Require self-closing on HTML elements (<button>)                                        vue/html-self-closing
   44:7    warning  Require self-closing on HTML elements (<button>)                                        vue/html-self-closing
   45:7    warning  Require self-closing on HTML elements (<button>)                                        vue/html-self-closing
   47:112  warning  Expected 1 line break after opening tag (`<button>`), but no line breaks found          vue/singleline-html-element-content-newline
   47:114  warning  Expected 1 line break before closing tag (`</button>`), but no line breaks found        vue/singleline-html-element-content-newline
   48:112  warning  Expected 1 line break after opening tag (`<button>`), but no line breaks found          vue/singleline-html-element-content-newline
   48:114  warning  Expected 1 line break before closing tag (`</button>`), but no line breaks found        vue/singleline-html-element-content-newline
   49:112  warning  Expected 1 line break after opening tag (`<button>`), but no line breaks found          vue/singleline-html-element-content-newline
   49:114  warning  Expected 1 line break before closing tag (`</button>`), but no line breaks found        vue/singleline-html-element-content-newline
   50:7    error    Component name "Actions" is not kebab-case                                              vue/component-name-in-template-casing
   51:8    error    Component name "ActionButton" is not kebab-case                                         vue/component-name-in-template-casing
   51:84   warning  Expected 1 line break after opening tag (`<ActionButton>`), but no line breaks found    vue/singleline-html-element-content-newline
   51:93   warning  Expected 1 line break before closing tag (`</ActionButton>`), but no line breaks found  vue/singleline-html-element-content-newline
   52:8    error    Component name "ActionButton" is not kebab-case                                         vue/component-name-in-template-casing
   52:84   warning  Expected 1 line break after opening tag (`<ActionButton>`), but no line breaks found    vue/singleline-html-element-content-newline
   52:93   warning  Expected 1 line break before closing tag (`</ActionButton>`), but no line breaks found  vue/singleline-html-element-content-newline
   53:8    error    Component name "ActionButton" is not kebab-case                                         vue/component-name-in-template-casing
   53:84   warning  Expected 1 line break after opening tag (`<ActionButton>`), but no line breaks found    vue/singleline-html-element-content-newline
   53:93   warning  Expected 1 line break before closing tag (`</ActionButton>`), but no line breaks found  vue/singleline-html-element-content-newline
   54:8    error    Component name "ActionButton" is not kebab-case                                         vue/component-name-in-template-casing
   54:70   warning  Expected 1 line break after opening tag (`<ActionButton>`), but no line breaks found    vue/singleline-html-element-content-newline
   54:80   warning  Expected 1 line break before closing tag (`</ActionButton>`), but no line breaks found  vue/singleline-html-element-content-newline
   55:8    error    Component name "ActionButton" is not kebab-case                                         vue/component-name-in-template-casing
   55:71   warning  Expected 1 line break after opening tag (`<ActionButton>`), but no line breaks found    vue/singleline-html-element-content-newline
   55:81   warning  Expected 1 line break before closing tag (`</ActionButton>`), but no line breaks found  vue/singleline-html-element-content-newline
   58:7    warning  Require self-closing on HTML elements (<button>)                                        vue/html-self-closing
   59:7    warning  Require self-closing on HTML elements (<button>)                                        vue/html-self-closing
   61:7    warning  Require self-closing on HTML elements (<button>)                                        vue/html-self-closing
   64:78   error    Event "hide" should be on a new line                                                    vue/max-attributes-per-line
   64:99   error    Directive "slot" should be on a new line                                                vue/max-attributes-per-line
   64:99   warning  Attribute "v-slot" should go before "@hide"                                             vue/attributes-order
   65:129  warning  Expected 1 line break after opening tag (`<div>`), but 2 line breaks found              vue/multiline-html-element-content-newline
   67:38   warning  Attribute "v-if" should go before "class"                                               vue/attributes-order
   68:8    warning  Disallow self-closing on HTML void elements (<input/>)                                  vue/html-self-closing
   68:53   warning  Attribute "v-model" should go before "type"                                             vue/attributes-order
   68:71   error    Attribute "placeholder" should be on a new line                                         vue/max-attributes-per-line
   68:94   error    Attribute "ref" should be on a new line                                                 vue/max-attributes-per-line
   68:94   warning  Attribute "ref" should go before "placeholder"                                          vue/attributes-order
   68:110  error    Event "keydown" should be on a new line                                                 vue/max-attributes-per-line
   68:137  error    Expected a space before '/>', but not found                                             vue/html-closing-bracket-spacing
   69:8    warning  Require self-closing on HTML elements (<button>)                                        vue/html-self-closing
   69:84   warning  Attribute "type" should go before "@click"                                              vue/attributes-order
   74:1    error    Expected indentation of 8 tabs but found 9 tabs                                         vue/html-indent
   75:1    error    Expected indentation of 8 tabs but found 9 tabs                                         vue/html-indent
   76:1    error    Expected indentation of 8 tabs but found 9 tabs                                         vue/html-indent
   76:10   warning  Attribute ":class" should go before "@click"                                            vue/attributes-order
   76:51   error    Expected no line breaks before closing bracket, but 1 line break found                  vue/html-closing-bracket-newline
   77:9    warning  Expected 1 line break after opening tag (`<button>`), but no line breaks found          vue/multiline-html-element-content-newline
   77:62   warning  Expected 1 space before '}}', but not found                                             vue/mustache-interpolation-spacing
   77:71   warning  Expected 1 line break before closing tag (`</button>`), but no line breaks found        vue/multiline-html-element-content-newline
   78:18   warning  Expected 1 line break before closing tag (`</div>`), but 2 line breaks found            vue/multiline-html-element-content-newline
   98:5    warning  Disallow self-closing on HTML void elements (<input/>)                                  vue/html-self-closing
   98:24   warning  Attribute "v-model" should go before "type"                                             vue/attributes-order
   99:5    warning  Disallow self-closing on HTML void elements (<input/>)                                  vue/html-self-closing
  107:8    error    'debounce' is defined but never used                                                    no-unused-vars
  109:10   error    'EditorSync' is defined but never used                                                  no-unused-vars
  120:2    error    'Bold' is defined but never used                                                        no-unused-vars
  130:15   error    Unexpected trailing comma                                                               comma-dangle
  135:1    error    More than 1 blank line not allowed                                                      no-multiple-empty-lines
  145:7    error    'EDITOR_PUSH_DEBOUNCE' is assigned a value but never used                               no-unused-vars
  200:27   error    Unexpected trailing comma                                                               comma-dangle
  242:65   error    Multiple spaces found before '&&'                                                       no-multi-spaces
  285:14   error    Unexpected space before function parentheses                                            space-before-function-paren
  297:20   error    A space is required after '{'                                                           object-curly-spacing
  297:38   error    A space is required before '}'                                                          object-curly-spacing
  302:20   error    A space is required after '{'                                                           object-curly-spacing
  302:39   error    A space is required before '}'                                                          object-curly-spacing
  307:46   error    Extra semicolon                                                                         semi
  310:29   error    A space is required after '{'                                                           object-curly-spacing
  310:62   error    A space is required before '}'                                                          object-curly-spacing
  312:20   error    A space is required after '{'                                                           object-curly-spacing
  312:54   error    A space is required before '}'                                                          object-curly-spacing
  313:12   error    'documentData' is assigned a value but never used                                       no-unused-vars
  313:27   error    A space is required after '{'                                                           object-curly-spacing
  313:45   error    A space is required before '}'                                                          object-curly-spacing
  314:12   error    'initialDocument' is assigned a value but never used                                    no-unused-vars
  316:49   error    A space is required after '{'                                                           object-curly-spacing
  316:61   error    A space is required before '}'                                                          object-curly-spacing
  316:63   error    Extra semicolon                                                                         semi
  319:18   error    A space is required after '{'                                                           object-curly-spacing
  319:24   error    A space is required before '}'                                                          object-curly-spacing
  320:8    error    Unexpected console statement                                                            no-console
  320:20   error    Strings must use singlequote                                                            quotes
  321:8    error    Unexpected console statement                                                            no-console
  325:8    error    Missing '()' invoking a constructor                                                     new-parens
  326:8    error    Missing '()' invoking a constructor                                                     new-parens
  327:8    error    Missing '()' invoking a constructor                                                     new-parens
  328:8    error    Missing '()' invoking a constructor                                                     new-parens
  329:8    error    Missing '()' invoking a constructor                                                     new-parens
  330:8    error    Missing '()' invoking a constructor                                                     new-parens
  331:8    error    Missing '()' invoking a constructor                                                     new-parens
  332:8    error    Missing '()' invoking a constructor                                                     new-parens
  333:8    error    Missing '()' invoking a constructor                                                     new-parens
  334:8    error    Missing '()' invoking a constructor                                                     new-parens
  335:8    error    Missing '()' invoking a constructor                                                     new-parens
  336:8    error    Missing '()' invoking a constructor                                                     new-parens
  353:10   error    Unexpected console statement                                                            no-console
  353:35   error    Extra semicolon                                                                         semi
  354:21   error    Extra semicolon                                                                         semi
  357:8    error    Unexpected trailing comma                                                               comma-dangle
  363:18   error    A space is required after '{'                                                           object-curly-spacing
  363:34   error    A space is required before '}'                                                          object-curly-spacing
  377:30   error    A space is required after '{'                                                           object-curly-spacing
  377:46   error    A space is required before '}'                                                          object-curly-spacing
  387:26   error    Expected consistent spacing                                                             standard/object-curly-even-spacing
  387:72   error    A space is required before '}'                                                          object-curly-spacing
  392:27   error    A space is required after '{'                                                           object-curly-spacing
  392:60   error    A space is required before '}'                                                          object-curly-spacing
  403:36   error    A space is required after ','                                                           comma-spacing
  405:10   error    'stillExistingSessions' is assigned a value but never used                              no-unused-vars
  451:46   error    Multiple spaces found before '('                                                        no-multi-spaces
  457:4    error    Unexpected trailing comma                                                               comma-dangle
  577:1    error    More than 1 blank line not allowed                                                      no-multiple-empty-lines

/home/jan/nextcloud/apps/text/src/EditorSync.js
   25:10  error  'receiveTransaction' is defined but never used                no-unused-vars
   67:1   error  More than 1 blank line not allowed                            no-multiple-empty-lines
  179:8   error  'newData' is assigned a value but never used                  no-unused-vars
  180:4   error  Expected exception block, space or tab after '/*' in comment  spaced-comment
  180:4   error  Expected space or tab before '*/' in comment                  spaced-comment
  273:4   error  Expected exception block, space or tab after '/*' in comment  spaced-comment
  273:4   error  Expected space or tab before '*/' in comment                  spaced-comment

/home/jan/nextcloud/apps/text/src/extensions/Keymap.js
  34:1  error  Block must be padded by blank lines  padded-blocks

/home/jan/nextcloud/apps/text/src/helpers.js
  43:1  error  More than 1 blank line not allowed  no-multiple-empty-lines

/home/jan/nextcloud/apps/text/src/marks/index.js
  30:27  error  Block must be padded by blank lines  padded-blocks
  34:1   error  Block must be padded by blank lines  padded-blocks
  36:35  error  Block must be padded by blank lines  padded-blocks
  40:1   error  Block must be padded by blank lines  padded-blocks

/home/jan/nextcloud/apps/text/src/public.js
  7:1   error  Unexpected console statement              no-console
  7:13  error  '__webpack_public_path__' is not defined  no-undef

/home/jan/nextcloud/apps/text/src/services/PollingBackend.js
   24:8   error  A space is required after '{'                                 object-curly-spacing
   24:19  error  A space is required before '}'                                object-curly-spacing
   25:8   error  A space is required after '{'                                 object-curly-spacing
   25:22  error  A space is required before '}'                                object-curly-spacing
   25:49  error  Extra semicolon                                               semi
   26:1   error  More than 1 blank line not allowed                            no-multiple-empty-lines
   89:9   error  'authority' is assigned a value but never used                no-unused-vars
   91:46  error  '||' should be placed at the beginning of the line            operator-linebreak
   92:45  error  '&&' should be placed at the beginning of the line            operator-linebreak
  114:35  error  A space is required after '{'                                 object-curly-spacing
  114:35  error  Expected consistent spacing                                   standard/object-curly-even-spacing
  123:41  error  Expected consistent spacing                                   standard/object-curly-even-spacing
  123:55  error  A space is required before '}'                                object-curly-spacing
  124:41  error  Expected consistent spacing                                   standard/object-curly-even-spacing
  124:63  error  A space is required before '}'                                object-curly-spacing
  159:9   error  'authority' is assigned a value but never used                no-unused-vars
  160:77  error  Extra semicolon                                               semi
  179:4   error  Expected exception block, space or tab after '/*' in comment  spaced-comment
  179:4   error  Expected space or tab before '*/' in comment                  spaced-comment
  212:32  error  A space is required after ','                                 comma-spacing

/home/jan/nextcloud/apps/text/src/services/SyncService.js
   26:8   error  A space is required after '{'                                     object-curly-spacing
   26:9   error  'Step' is defined but never used                                  no-unused-vars
   26:13  error  A space is required before '}'                                    object-curly-spacing
   26:43  error  Extra semicolon                                                   semi
   27:8   error  A space is required after '{'                                     object-curly-spacing
   27:34  error  A space is required before '}'                                    object-curly-spacing
   32:2   error  Extra semicolon                                                   semi
   45:15  error  Unexpected trailing comma                                         comma-dangle
   48:19  error  Block must be padded by blank lines                               padded-blocks
   49:13  error  Unexpected space before function parentheses                      space-before-function-paren
   63:14  error  Unexpected trailing comma                                         comma-dangle
   83:7   error  A space is required after '{'                                     object-curly-spacing
   83:24  error  A space is required before '}'                                    object-curly-spacing
   84:29  error  A space is required after '{'                                     object-curly-spacing
   84:46  error  A space is required before '}'                                    object-curly-spacing
   87:26  error  Unexpected trailing comma                                         comma-dangle
   89:39  error  A space is required after '{'                                     object-curly-spacing
   89:44  error  A space is required before '}'                                    object-curly-spacing
  106:16  error  A space is required after '{'                                     object-curly-spacing
  106:33  error  A space is required before '}'                                    object-curly-spacing
  136:30  error  Unnecessary use of conditional expression for default assignment  no-unneeded-ternary
  150:16  error  A space is required after '{'                                     object-curly-spacing
  150:32  error  A space is required before '}'                                    object-curly-spacing
  162:3   error  Unexpected console statement                                      no-console
  162:24  error  Extra semicolon                                                   semi
  163:21  error  A space is required after '{'                                     object-curly-spacing
  163:47  error  A space is required before '}'                                    object-curly-spacing
  164:3   error  Unexpected console statement                                      no-console
  223:1   error  Block must be padded by blank lines                               padded-blocks
  225:27  error  Extra semicolon                                                   semi

✖ 184 problems (143 errors, 41 warnings)
  117 errors and 41 warnings potentially fixable with the `--fix` option.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] lint: `eslint --ext .js,.vue src`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jan/.npm/_logs/2019-06-07T15_30_31_450Z-debug.log
Makefile:47: recipe for target 'lint' failed
make: *** [lint] Error 1
bug

All 15 comments

Ah yes, sorry. It seems that the linter is still not running when just using npm run build, I'll fix that next week.

@jancborchardt Fixed with 5792c6c0993e4b22b2e39db9ec511502b5e654ff and a check added with 5d8afd3290d5e0d3efecc6a61bdd53e1be63dc91

Getting different errors now – still not compiling @juliushaertl. Anything I’m missing?

~/nextcloud/apps/text$ npm run build

> [email protected] build /home/jan/nextcloud/apps/text
> webpack --progress --hide-modules --config webpack.prod.js

Hash: f9b7309468c4974a1d34                                                             
Version: webpack 4.33.0
Time: 16394ms
Built at: 2019-06-11 16:09:59
 6 assets
Entrypoint text = text.js text.js.map
Entrypoint files = files.js files.js.map
Entrypoint public = public.js public.js.map

ERROR in ./src/components/EditorWrapper.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/EditorWrapper.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve 'prosemirror-collab' in '/home/jan/nextcloud/apps/text/src/components'
 @ ./src/components/EditorWrapper.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/EditorWrapper.vue?vue&type=script&lang=js&) 118:0-48 235:104-114
 @ ./src/components/EditorWrapper.vue?vue&type=script&lang=js&
 @ ./src/components/EditorWrapper.vue
 @ ./src/main.js

ERROR in ./src/services/SyncService.js
Module not found: Error: Can't resolve 'prosemirror-collab' in '/home/jan/nextcloud/apps/text/src/services'
 @ ./src/services/SyncService.js 31:0-63 166:34-47 212:51-61 218:15-25
 @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/EditorWrapper.vue?vue&type=script&lang=js&
 @ ./src/components/EditorWrapper.vue?vue&type=script&lang=js&
 @ ./src/components/EditorWrapper.vue
 @ ./src/main.js

ERROR in ./src/services/PollingBackend.js
Module not found: Error: Can't resolve 'prosemirror-collab' in '/home/jan/nextcloud/apps/text/src/services'
 @ ./src/services/PollingBackend.js 31:0-51 112:51-64
 @ ./src/services/SyncService.js
 @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/EditorWrapper.vue?vue&type=script&lang=js&
 @ ./src/components/EditorWrapper.vue?vue&type=script&lang=js&
 @ ./src/components/EditorWrapper.vue
 @ ./src/main.js
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `webpack --progress --hide-modules --config webpack.prod.js`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jan/.npm/_logs/2019-06-11T14_09_59_654Z-debug.log

@jancborchardt did you try make ?

Yes, I did try make always, and also individually npm install (which works fine except for the vulnerability alerts) and then npm run build where the issue appears.

With a new git pull same thing, here’s the complete log from npm:

~/nextcloud/apps/text$ cat /home/jan/.npm/_logs/2019-06-11T14_48_36_320Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/home/jan/.nvm/versions/node/v11.3.0/bin/node',
1 verbose cli   '/home/jan/.nvm/versions/node/v11.3.0/bin/npm',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: /home/jan/.nvm/versions/node/v11.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/jan/nextcloud/apps/text/node_modules/.bin:/home/jan/Android/Sdk/platform-tools:/home/jan/.yarn/bin:/home/jan/.config/yarn/global/node_modules/.bin:/home/jan/anaconda3/bin:/home/jan/.nvm/versions/node/v11.3.0/bin:/home/jan/.local/bin:/home/jan/.rvm/gems/ruby-2.4.2/bin:/home/jan/.rvm/gems/ruby-2.4.2@global/bin:/home/jan/.rvm/rubies/ruby-2.4.2/bin:/home/jan/Android/Sdk/platform-tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/jan/.rvm/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/jan/.rvm/bin
9 verbose lifecycle [email protected]~build: CWD: /home/jan/nextcloud/apps/text
10 silly lifecycle [email protected]~build: Args: [ '-c',
10 silly lifecycle   'webpack --progress --hide-modules --config webpack.prod.js' ]
11 silly lifecycle [email protected]~build: Returned: code: 2  signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `webpack --progress --hide-modules --config webpack.prod.js`
13 verbose stack Exit status 2
13 verbose stack     at EventEmitter.<anonymous> (/home/jan/.nvm/versions/node/v11.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess.<anonymous> (/home/jan/.nvm/versions/node/v11.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:978:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/jan/nextcloud/apps/text
16 verbose Linux 4.15.0-51-generic
17 verbose argv "/home/jan/.nvm/versions/node/v11.3.0/bin/node" "/home/jan/.nvm/versions/node/v11.3.0/bin/npm" "run" "build"
18 verbose node v11.3.0
19 verbose npm  v6.9.0
20 error code ELIFECYCLE
21 error errno 2
22 error [email protected] build: `webpack --progress --hide-modules --config webpack.prod.js`
22 error Exit status 2
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]

@jancborchardt does the prosemirror-collab appear in the package.json file?

@skjnldsv no, only these entries related to prosemirror, which are in dependencies:

"prosemirror-example-setup": "^1.0.1",
"prosemirror-markdown": "^1.3.0",

prosemirror-collab is a depedency of tiptap-extensions so it should be installed

Yep, compile works fine here.
What version of npm are you using?

npm v11.3.0, at least that’s what "which npm" says.

Waaait …

npm -v says 6.9.0 🤨

I need to go now, but will check this out later. Outdated npm is most likely the reason, right?

Nope, npm latest is 6.9.0 :)
11.3.0 is the node version ;)

As already mentioned, maybe this is also caused by an old package-lock.json, since i didn't commit it yet to the repo. Try getting rid of that and running another make.

Ooooooooh it works now … somehow … not sure how exactly.

Now I only get these "stuff is too big" warnings, but no errors. :)

/nextcloud/apps/text$ npm run build

> [email protected] build /home/jan/nextcloud/apps/text
> webpack --progress --hide-modules --config webpack.prod.js

Hash: 5ce1e80c7c351d64682d                                                             
Version: webpack 4.33.0
Time: 42158ms
Built at: 2019-06-12 22:46:39
        Asset     Size  Chunks                    Chunk Names
     files.js  887 KiB       0  [emitted]  [big]  files
 files.js.map    3 MiB       0  [emitted]         files
    public.js  887 KiB       1  [emitted]  [big]  public
public.js.map    3 MiB       1  [emitted]         public
      text.js  887 KiB       2  [emitted]  [big]  text
  text.js.map    3 MiB       2  [emitted]         text
Entrypoint text [big] = text.js text.js.map
Entrypoint files [big] = files.js files.js.map
Entrypoint public [big] = public.js public.js.map

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  files.js (887 KiB)
  public.js (887 KiB)
  text.js (887 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  text (887 KiB)
      text.js
  files (887 KiB)
      files.js
  public (887 KiB)
      public.js


WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

Yes, I'll look into code splitting.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

inthreedee picture inthreedee  Â·  6Comments

jancborchardt picture jancborchardt  Â·  4Comments

skjnldsv picture skjnldsv  Â·  3Comments

juliushaertl picture juliushaertl  Â·  3Comments

juliushaertl picture juliushaertl  Â·  3Comments