Electron-Builder Version: 22.14.2
Node Version: 16.14.2
Electron Version: 13.1.9
Electron Type (current, beta, nightly): current
Target: MacOS, but i need WML
[Error: Could not locate update bundle for com.github.Electron within
file:///Users/lucas/Library/Caches/com.github.Electron.ShipIt/update.erv01nk/]
{ code: 2, domain: 'SQRLUpdaterErrorDomain' } Error: Error: Could not
locate update bundle for com.github.Electron within
file:///Users/lucas/Library/Caches/com.github.Electron.ShipIt/update.erv01nk/
When I try to do the update, it throws this error right after finishing the download and calling autoUpdater.quitAndInstall()
Related
I need to integrate the #serialport library in my electron project but I face this error.
Uncaught Error: Loading non-context-aware native module in renderer: '\?\C:\Users\PC\Desktop\electron_project_X32\node_modules#serialport\bindings\build\Release\bindings.node'
I try to solve it by Making the following changes in the main.js
app.allowRendererProcessReuse = false but no changes
NB: I use those version electron: ^16.1.0 && node: 16.13.2 (32-bit ) && serialport: ^10.4.0,
Current behavior
I know this kind of issue was fixed in the version 5.1.0 but ...
I'm trying to seed DB in the Node JS part logic at the before hook
We have the cls-hooked and 1 more internal npm module for sharing both use async_hooks
When I'm trying to import and use any of that modules I receive crashes at the test script launch:
Error: Webpack Compilation Error
./node_modules/...[our private module name].../lib/...[file name]....js
Module not found: Error: Can't resolve 'async_hooks' in '/Users/.../node_modules/...[private module or cls-hooked].../lib'
resolve 'async_hooks' in '/Users/.../node_modules/...[private module or cls-hooked].../lib'
Parsed request is a module
using description file: /Users/.../node_modules/...[private module or cls-hooked].../package.json (relative path: ./lib)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
Desired behavior
Test script launch should go smoothly with before hook executing
Test code to reproduce
require some module in ./cypress/plugins/index.ts with next similar logic
var async_hooks = require("async_hooks");
var asyncLocalStorage = new async_hooks.AsyncLocalStorage();
...
asyncLocalStorage.getStore();
Cypress Version
^8.1.0 - 8.5.0
Cypress binary version: 8.5.0
Electron version: 13.2.0
Bundled Node version: 14.16.0
tried Node version: 14.17.6 and 16.9.1
the same for:
Cypress binary version: 7.7.0
Electron version: 12.0.0-beta.14
Bundled Node version: 14.15.1
Other
additional install of "async_hooks": "^1.0.0" didn't help
Using TS
"typescript": "^4.1.5"
OS
macOS Big Sur 11.16
The problem was in 1 common file for both processes browser and NodeJs in Cypress.
In this case, Webpack built the bundle with 'browser' context but received NodeJs context logic. That's why the error occured.
When I used enum in Browser part in the file which besides that also exports NodeJs logic it (Webpack) didn't make the 'treeshaking', thus the NodeJs logic was imported into the bundle for browser process logic. 🤷♂️
As mentioned in Unable to resolve module `#babel/runtime/helpers/interopRequireDefault`, I am experiencing the same error and the solution for that question doesn't solve the problem in my case.
Neither React Native - Unable to resolve module `#babel/runtime/helpers/interopRequireDefault` resolves my problem.
I am using
OS: Windows 10 10.0.18362
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU # 1.60GHz
Memory: 2.03 GB / 7.92 GB
Binaries:
Node: 12.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.12.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5977832
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.4 => 0.61.4
The error says:
error: bundling failed: Error: Unable to resolve module `#babel/runtime/helpers/interopRequireDefault` from `index.js`: #babel/runtime/helpers/interopRequireDefault could not be found within the project.
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules: rm -rf node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
4. Remove the cache: rm -rf /tmp/metro-*
at ModuleResolver.resolveDependency (C:\ReactProjects\testy\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:186:15)
at ResolutionRequest.resolveDependency (C:\ReactProjects\testy\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (C:\ReactProjects\testy\node_modules\metro\src\node-haste\DependencyGraph.js:282:16)
at Object.resolve (C:\ReactProjects\testy\node_modules\metro\src\lib\transformHelpers.js:267:42)
at C:\ReactProjects\testy\node_modules\metro\src\DeltaBundler\traverseDependencies.js:426:31
at Array.map (<anonymous>)
at resolveDependencies (C:\ReactProjects\testy\node_modules\metro\src\DeltaBundler\traverseDependencies.js:423:18)
at C:\ReactProjects\testy\node_modules\metro\src\DeltaBundler\traverseDependencies.js:275:33
at Generator.next (<anonymous>)
at asyncGeneratorStep (C:\ReactProjects\testy\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24)
BUNDLE [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.
The module exists and I have tried the mentioned steps but still it doesnt work.
The app actually builds successfully with message Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
When the app runs the same error as above shows up.
Any help is appreciated.
In my case, the problem was not caused by RN, but by watchman.
There are two ways to solve this until a potential bug is fixed:
First would be to uninstall watchman.
Or manually edit the file node_modules/jest-haste-map/build/index.js to change:
const crawl =
canUseWatchman && this._options.useWatchman
? _watchman.default
: _node.default;
To:
const crawl =
canUseWatchman && this._options.useWatchman
? _node.default
: _node.default;
The latter will of course not persist over package upgrades.
This error comes as a result of resolving this question
Here is my ionic info:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.4.0
Xcode version: Not installed
(I am also using npm v4.1.1)
When attempting to build #ionic/app-scripts, I am getting the following error:
E:\Documents\Year_3\Mobile_Application_Development\mammoth-v2\node_modules\webpack-sources\node_modules\source-map\lib\source-node.js:95
var code = nextLine.substr(0, mapping.generatedColumn -
^
TypeError: Cannot read property 'substr' of undefined
at Function.<anonymous> (E:\Documents\Year_3\Mobile_Application_Development\mammoth-v2\node_modules\webpack-sources\node_modules\source-map\lib\source-node.js:95:30)
at Array.forEach (native)
at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (E:\Documents\Year_3\Mobile_Application_Development\mammoth-v2\node_modules\webpack-sources\node_modules\source-map\lib\source-map-consumer.js:155:14)
at Function.SourceNode_fromStringWithSourceMap [as fromStringWithSourceMap] (E:\Documents\Year_3\Mobile_Application_Development\mammoth-v2\node_modules\webpack-sources\node_modules\source-map\lib\source-node.js:80:24)
at SourceMapSource.node (E:\Documents\Year_3\Mobile_Application_Development\mammoth-v2\node_modules\webpack-sources\lib\SourceMapSource.js:42:20)
at ReplaceSource.node (E:\Documents\Year_3\Mobile_Application_Development\mammoth-v2\node_modules\webpack-sources\lib\ReplaceSource.js:69:29)
at CachedSource.node (E:\Documents\Year_3\Mobile_Application_Development\mammoth-v2\node_modules\webpack-sources\lib\CachedSource.js:12:23)
at E:\Documents\Year_3\Mobile_Application_Development\mammoth-v2\node_modules\webpack-sources\lib\ConcatSource.js:40:49
at Array.map (native)
at ConcatSource.node (E:\Documents\Year_3\Mobile_Application_Development\mammoth-v2\node_modules\webpack-sources\lib\ConcatSource.js:39:60)
If needed, when I run npm run build (to build #ionic/app-scripts), this is the build log:
[07:28:45] ionic-app-scripts 1.0.0
[07:28:45] build dev started ...
[07:28:45] clean started ...
[07:28:45] clean finished in 4 ms
[07:28:45] copy started ...
[07:28:45] transpile started ...
[07:28:49] transpile finished in 4.44 s
[07:28:49] webpack started ...
[07:28:49] copy finished in 4.57 s
**errors arise here**
EDIT:
I added the configuration:
"config": {
"ionic_generate_source_map": false
},
...to packages.json which seemed to fix the error but am now faced with another one:
Error: ENOENT: no such file or directory, open 'main.js.map'
Which is thrown when I attempt to do ionic serve (the build of #ionic/app-scripts works just fine now)
EDIT #2:
Does ionic rely on a source map to run? As the error is arising because non are built
This error comes from having two 2 classes/components in one ts file.
A brutal way to fix this.
Is going to node_modules\webpack-sources\node_modules\source-map\lib\source-map\source-node.js
And exchanging all 2 times this appears:
var nextLine = remainingLines[0];
To this
var nextLine = remainingLines[0] || '';
Problem with this solution is that you can't put it into version control since this is node modules
I added the configuration:
"config": {
"ionic_generate_source_map": false
},
...to packages.json which seemed to fix the error.
In the Edit above, I have now described another error I am encountering
The way I resolve this issue, was adding to package.json this config option:
"config": {
"ionic_source_map_type": "eval"
}
I'm building a node webkit app and want to gulp run it. However every time gulp grabs the 'latest' alpha build (v0.13.0) and I need it to grab v0.12.2 how can I tell it to do this??
The full error is:
[11:14:45] Starting 'run'... Latest Version: v0.13.0 Using v0.13.0 Create cache folder in
/Users/Scot/chat/node_modules/node-webkit-builder/cache/0.13.0
Downloading: http://dl.nwjs.io/v0.13.0/nwjs-v0.13.0-osx-x64.zip
ERROR: The version 0.13.0 does not have a corresponding build posted
at http://dl.node-webkit.org/. Please choose a version from that list.
Unable to download nodewebkit. [11:14:47] Finished 'run' after 1.75 s
You can see here: https://github.com/mllrsohn/node-webkit-builder/blob/master/example/Gulpfile.js
var nw = new NwBuilder({
version: '0.12.2',
files: './nwapp/**',
macIcns: './icons/icon.icns',
macPlist: {mac_bundle_id: 'myPkg'},
platforms: ['win32', 'win64', 'osx32', 'osx64']
});