codebytere / codebytere/electron-font-manager
Is there any additional requirements for setting up on M1 Mac?
- Dominant language
- Objective-C++
- Stars
- 23
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Hello. I got this error.
```
../node_modules/electron-font-manager/build/Release/font_manager.node
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
```
## Environment
- M1 Mac
- version 12.5
- node version v16.4.0
```ts
const { getAvailableFonts } = require("electron-font-manager");
const fonts = getAvailableFonts();
console.log("fonts", fonts);
```
I'm trying to use this library for my electron project. But it is not working because of that error.
Thank you.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported error from the require("electron-font-manager") entry point on an M1 Mac with Node v16.4.0, then inspect node_modules/electron-font-manager/build/Release/font_manager.node and the Electron build configuration. Done means the module loads without the webpack parse error and getAvailableFonts() runs successfully in the reported Electron project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, macos, node.js, typescript, webpack
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100