Automattic / Automattic/node-canvas
Bad interactions between keytar and canvas on Ubuntu 18.04
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
## Issue or Feature
- [x] If this is an issue with installation, I have read the [troubleshooting guide](https://github.com/Automattic/node-canvas/issues/1511).
Requiring canvas 2.8.0 after requiring keytar 7.7.0 results in an undefined symbol error. Requiring in the opposite order results in no errors.
## Steps to Reproduce
Bad:
```js
require('keytar');
require('canvas'); // fails with Error: /home/ubuntu/hi/node_modules/canvas/build/Release/libpango-1.0.so.0: undefined symbol: g_ptr_array_copy
console.log("never reached");
```
Good:
```js
require('canvas');
require('keytar');
console.log("😊");
```
## Your Environment
* Version of node-canvas (output of `npm list canvas` or `yarn list canvas`): 2.8.0
* Environment (e.g. node 16.13.0 on Ubuntu 18.04.4):
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.