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 message Cannot find module '../build/Release/spellchecker.node' #58

Open
zoechi opened this issue May 6, 2020 · 3 comments
Open

Comments

@zoechi
Copy link

zoechi commented May 6, 2020

Suspicious state from syntax checker textlint: Flycheck checker textlint returned 1, but its output contained no errors: ✖ Error
Cannot find module '../build/Release/spellchecker.node'
Require stack:
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint-rule-spellchecker/node_modules/spellchecker/lib/spellchecker.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint-rule-spellchecker/lib/spellchecker.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/lib/textlint/src/engine/textlint-module-loader.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/lib/textlint/src/engine/textlint-engine-core.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/lib/textlint/src/textlint-engine.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/lib/textlint/src/cli.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/bin/textlint.js

✖ Stack trace
Error: Cannot find module '../build/Release/spellchecker.node'
Require stack:
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint-rule-spellchecker/node_modules/spellchecker/lib/spellchecker.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint-rule-spellchecker/lib/spellchecker.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/lib/textlint/src/engine/textlint-module-loader.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/lib/textlint/src/engine/textlint-engine-core.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/lib/textlint/src/textlint-engine.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/lib/textlint/src/cli.js
- /home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint/bin/textlint.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint-rule-spellchecker/node_modules/spellchecker/lib/spellchecker.js:3:16)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/home/user/.nvm/versions/node/v12.16.2/lib/node_modules/textlint-rule-spellchecker/lib/spellchecker.js:9:21)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)

Try installing a more recent version of textlint, and please open a bug report if the issue persists in the latest release.  Thanks!

Do I need to install spellchecker or other dependencies from npm individually? (I tried but that failed - probably atom/node-spellchecker#111)

@alik604
Copy link

alik604 commented Sep 2, 2020

too bad there is no support on this. I have the same issue

@rjhilgefort
Copy link

I've had this issue intermittently as well. @alik604 or @zoechi did you find any work arounds?

@future-mine
Copy link

future-mine commented May 3, 2021

Did anyone find a solution? It used to work in a local environment but after deploying to AWS elastic beanstalk, it throws the error. Does anyone have an idea?
image

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

4 participants