foliojs / font-manager

A C++ module for Node.js providing access to the system font catalog.
MIT License
295 stars 100 forks source link

Crash #21

Closed rensiu closed 4 years ago

rensiu commented 7 years ago

Mac: When spellchecker and font-manager appear in the same process, electron crash!!! Windows system is ok.

robberfree commented 6 years ago

@rensiu don't you have problem like this:

Module not found: Can't resolve 'font-manager'

i have installed font-manager and rebuild it(with some warning). my node version is 8.9.0.

rensiu commented 6 years ago

@robberfree your environment for example: browser?electron?webpack? and your configuration

robberfree commented 6 years ago

@rensiu i am creating a app use React and Electron.just use Create React App to manage the dependencies and other settings.

rensiu commented 6 years ago

@robberfree if you run 'npm start' and your other node packages can't be resolved, you can add require('module').globalPaths.push(yourNodeModulesDir) into your index.html. try this and tell me result.

robberfree commented 6 years ago

@rensiu very sorry for replay lately. Today I solved the problem with my colleague。

  1. I install font-manager to devDependencies wrongly in old days.Now I install it to dependencies
  2. I use electron-rebuild to rebuild font-manager after read this document:using-native-node-modules

then I can require font-manager and use it in main process.