Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: dydl Library not loaded. Reason: Image not found #53

Closed
julia-suarez-deel opened this issue Jun 27, 2019 · 0 comments
Closed

Error: dydl Library not loaded. Reason: Image not found #53

julia-suarez-deel opened this issue Jun 27, 2019 · 0 comments

Comments

@julia-suarez-deel
Copy link

julia-suarez-deel commented Jun 27, 2019

Hello, I'm trying to use this module in an Electron App but it raises an exception:

dyld: Library not loaded: @rpath/libswiftAppKit.dylib
  Referenced from: /Users/js/Code/node-window-test/node_modules/active-win/main
  Reason: image not found

    at ChildProcess.exithandler (child_process.js:294:12)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Socket.stream.socket.on (internal/child_process.js:389:11)
    at Socket.emit (events.js:198:13)
    at Pipe._handle.close (net.js:606:12)

Also, I tried to create a simple test.js file with the following:

const activeWin = require('active-win');

(async () => {
	console.log(await activeWin());
	/*
	{
		title: 'Unicorns - Google Search',
		id: 5762,
		bounds: {
			x: 0,
			y: 0,
			height: 900,
			width: 1440
		},
		owner: {
			name: 'Google Chrome',
			processId: 310,
			bundleId: 'com.google.Chrome',
			path: '/Applications/Google Chrome.app'
		},
		memoryUsage: 11015432
	}
	*/
})();

Then I installed the package with npm i active-win.

But when I run:

node test.js the same error is shown.

Am I missing something?

I'm running macOS mojave 10.14.1.

Please help me, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant