Control: clone -1 -2
Control: reassign -1 less.js
Control: found -1 3.11.1-1
Control: reassign -2 rainloop
Control: retitle -1 less.js: causes FTBFS in rainloop - TypeError: less.render is not a function
Control: retitle -2 rainloop: include package.json in embedded modules

On Tue, Jun 2, 2020 at 4:30 pm, Pirate Praveen <prav...@onenetbeyond.org> wrote:
While at it, please also use components via watch + uscan or add them to debian/build_modules (both of the moethods will have the modules linked to node_modules directory during build when pkg-js-tools is used) so we can easily track their versions and update them when required. Currently we have no information about the versions of these components in debian/build.

I have split this into 2 separate bugs now.

After using add-module-exports plugin in babel, the error now changed to,

gulp rainloop
[11:11:47] Local modules not found in /<<PKGBUILDDIR>>
[11:11:47] Try running: npm install
[11:11:47] Using globally installed gulp
[11:11:48] Using gulpfile /<<PKGBUILDDIR>>/gulpfile.js
[11:11:48] Starting 'rainloop'...
[11:11:48] Starting '<anonymous>'...
[11:11:48] Finished '<anonymous>' after 5.87 ms
[11:11:48] Starting 'assetsCopy'...
[11:11:48] Finished 'assetsCopy' after 71 ms
[11:11:48] Starting 'jsClean'...
[11:11:48] Starting 'cssClean'...
[11:11:48] Starting 'momentLocalesClear'...
[11:11:48] Starting 'ckeditorClear'...
[11:11:48] Starting 'fontasticFontsClear'...
[11:11:48] Starting 'lightgalleryFontsClear'...
[11:11:48] Finished 'ckeditorClear' after 2.6 ms
[11:11:48] Starting 'ckeditorCopyPlugins'...
[11:11:48] Finished 'jsClean' after 7.24 ms
[11:11:48] Starting '<anonymous>'...
[11:11:48] Finished 'cssClean' after 147 ms
[11:11:48] Starting 'cssMainBuild'...
[11:11:48] Starting 'cssSocialBuild'...
[11:11:48] Finished 'momentLocalesClear' after 152 ms
[11:11:48] Starting 'momentLocales'...
[11:11:48] Finished 'fontasticFontsClear' after 153 ms
[11:11:48] Starting 'fontasticFontsCopy'...
[11:11:48] Finished 'lightgalleryFontsClear' after 154 ms
[11:11:48] Starting 'lightgalleryFontsCopy'...
[11:11:48] Finished 'momentLocales' after 13 ms
[11:11:48] Finished 'cssSocialBuild' after 123 ms
[11:11:49] Finished 'lightgalleryFontsCopy' after 495 ms
[11:11:49] Finished 'fontasticFontsCopy' after 892 ms
[11:11:52] Finished 'ckeditorCopyPlugins' after 4.29 s
(node:170700) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object
   at Function.from (buffer.js:231:9)
   at new Buffer (buffer.js:181:17)
   at /<<PKGBUILDDIR>>/debian/build/gulp-less.js:40:23
   at /usr/share/nodejs/less/dist/less/render.js:49:9
   at /usr/share/nodejs/less/dist/less/parse.js:97:9
at ImportVisitor.finish [as _finish] (/usr/share/nodejs/less/dist/less/parser/parser.js:263:18) at ImportVisitor._onSequencerEmpty (/usr/share/nodejs/less/dist/less/visitors/import-visitor.js:50:10) at ImportSequencer.tryRun (/usr/share/nodejs/less/dist/less/visitors/import-sequencer.js:82:14) at /usr/share/nodejs/less/dist/less/visitors/import-sequencer.js:43:25 at fileParsedFunc (/usr/share/nodejs/less/dist/less/import-manager.js:102:13) (node:170700) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[11:12:01] Finished '<anonymous>' after 13 s
[11:12:01] Starting 'jsLibs'...
[11:12:01] Starting 'jsApp'...
[11:12:01] Starting 'jsAdmin'...
[11:12:01] 'jsLibs' errored after 12 ms
[11:12:01] Error: File not found with singular glob: /usr/lib/nodejs/autolinker/dist/Autolinker.js (if this was purposeful, use `allowEmpty` option) at Glob.<anonymous> (/usr/share/nodejs/glob-stream/readable.js:84:17)
   at Object.onceWrapper (events.js:286:20)
   at Glob.emit (events.js:198:13)
   at Glob.EventEmitter.emit (domain.js:448:20)
   at Glob._finish (/usr/share/nodejs/glob/glob.js:197:8)
   at done (/usr/share/nodejs/glob/glob.js:182:14)
   at Glob._processSimple2 (/usr/share/nodejs/glob/glob.js:688:12)
   at /usr/share/nodejs/glob/glob.js:676:10
   at Glob._stat2 (/usr/share/nodejs/glob/glob.js:772:12)
   at lstatcb_ (/usr/share/nodejs/glob/glob.js:764:12)
[11:12:01] 'rainloop' errored after 13 s
[11:12:01] The following tasks did not complete: <series>, <parallel>, cssMainBuild, jsApp, jsAdmin
[11:12:01] Did you forget to signal async completion?

Just for the record, using @babel/proposal-export-default-from does not work. So we will need to tweak more to get closer to upstream built less.

--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to