[Pkg-javascript-devel] Removing babel 6: Call for help

Xavier yadd at debian.org
Tue May 12 09:58:19 BST 2020


Le 12/05/2020 à 09:04, Pirate Praveen a écrit :
> 
> 
> On 2020, മേയ് 12 4:06:33 AM IST, Xavier <yadd at debian.org> wrote:
>> ERROR in ./src/crypto/aes.js
>> Module not found: Error: Can't resolve './../../buffer' in
>> '/<<PKGBUILDDIR>>/src/crypto'
>> @ ./src/crypto/aes.js 1:0-25
>> @ ./src/crypto/SecretStorage.js
>> @ ./src/crypto/index.js
>> @ ./src/client.js
>> @ ./src/matrix.js
>> @ ./src/browser-index.js
> 
> https://webpack.js.org/configuration/node/
> 
> I think you will need use node: options here
> 
> Or try with target: node option in output.,

I fixed it using a simple buffer.js which requires node's "buffer". Now
build is OK but simple "require" test warns:


(node:2533182) UnhandledPromiseRejectionWarning: Error: Not supported
    at Object.<anonymous>
(/usr/share/nodejs/matrix-js-sdk/lib/matrix.js:380:24)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous>
(/usr/share/nodejs/matrix-js-sdk/lib/index.js:13:40)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
(node:2533182) 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)



More information about the Pkg-javascript-devel mailing list