atom-import-js icon indicating copy to clipboard operation
atom-import-js copied to clipboard

Fails to load because of incompatible native module: sqlite3

Open nene opened this issue 7 years ago • 2 comments

Atom-import-js used to work just fine, until one fine day it suddenly stopped working. Perhaps related to recent OSX update.

Got the following error in console:

Failed to require the main module of 'atom-import-js' because it requires one or more incompatible native modules (sqlite3). Run apm rebuild in the package directory and restart Atom to resolve.

Tried running apm rebuild in the package directory... the rebuild went just fine. Even tried to completely uninstall and reinstall atom-import-js, but still doesn't work.

The sqlite3 command is available in OSX console and works without issues. I see that sqlite3 is a dependency of import-js itself and it's nicely installed inside node_modules/... I guess it contains native part that's causing this incompatibility...

What else could I look into?

nene avatar Jun 27 '18 08:06 nene

I guess noone is maintaining this plugin any more, wondering how Atom plans to help out as it's strange it does not have support for imports

alexgvozden avatar Sep 21 '18 04:09 alexgvozden

Apologies for not responding to this issue. This plugin is maintained (by me and others using the plugin).

This specific issue has been reported before, and people have suggested a few workarounds. See https://github.com/Galooshi/atom-import-js/issues/12

trotzig avatar Sep 21 '18 14:09 trotzig