Open tiagohintz opened 2 years ago
Also tested with Meteor version 2.4 (Blaze) and the same error occurs.
Any one solved it yet?
Same issue
I've tracked it down to this code in https://github.com/wojtkowiak/meteor-desktop/blob/01fb583d25b7b0f82308677389bce77cb5c8ce79/plugins/bundler/bundler.js#L869
In development mode, uglifiedCode
will be undefined
, which causes an error since fs.writeFileSync
introduced type checking of the data parameter in Node 14.
My work-around is to copy the /plugins/bundler
folder into my project's /packages
folder (so that Meteor uses my local copy of the package), then change that line to uglifiedCode || code
.
Also, all these warnings are produced by meteor-desktop's dependency on shelljs@0.8.2
. To remove these warnings this should be updated to >= 0.8.4 ref https://github.com/shelljs/shelljs/issues/991#issuecomment-619316520
(node:20512) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:20512) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:20512) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
...
I've included your fixes in a pull request to the Meteor-Community org's fork of this package since this is no longer maintained https://github.com/Meteor-Community-Packages/meteor-desktop/pull/7 . I'm hoping to get this published as meteor-desktop version 2.2.6
When starting the new project after installing and configuring meteor-desktop it displays the error (Note: This only happens in Meteor version 2.3 and above "Node 14", in versions with Node 12 and 10 the problem does not occur):
Project details: meteor: 2.3.6 (Blaze) meteor-desktop: 2.2.5 electron: 6.1.7 electron-builder: 21.2.0 jquery: 3.5.1 OS: MacOS - Darwin 192.168.1.12 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
Tanks