Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Uncaught (in promise) Error: Cannot find module '../node_modules/string_decoder/index.js' #17125

Closed
1 task done
Arcanemagus opened this issue Apr 12, 2018 · 1 comment · Fixed by #17481
Closed
1 task done

Comments

@Arcanemagus
Copy link
Contributor

Arcanemagus commented Apr 12, 2018

Prerequisites

Description

When the github package starts up its filesystem watcher the following stack trace is thrown to the console:

Uncaught (in promise) Error: Cannot find module '../node_modules/string_decoder/index.js'
    at Module._resolveFilename (module.js:470:15)
    at Module._resolveFilename (C:\temp\atom\553dec3e7\Atom x64\resources\electron.asar\common\reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (C:\temp\atom\553dec3e7\Atom x64\resources\app\src\module-cache.js:354:58)
    at Module.require (file:///C:/temp/atom/553dec3e7/Atom%20x64/resources/app.asar/static/index.js:40:43)
    at require (internal/module.js:20:19)
    at customRequire (C:\temp\atom\553dec3e7\Atom x64\resources\app\static\<embedded>:96:26)
    at get_Decoder (C:\temp\atom\553dec3e7\Atom x64\resources\app\node_modules\split\index.js:12:37)
    at split (C:\temp\atom\553dec3e7\Atom x64\resources\app\node_modules\split\index.js:20:28)
    at C:\temp\atom\553dec3e7\Atom x64\resources\app\node_modules\what-the-status\index.js:37:18
    at Promise (<anonymous>)
    at parse (C:\temp\atom\553dec3e7\Atom x64\resources\app\node_modules\what-the-status\index.js:16:16)
    at C:\temp\atom\553dec3e7\Atom x64\resources\app\node_modules\github\lib\git-shell-out-strategy.js:567:60
    at Generator.next (<anonymous>)
    at step (C:\temp\atom\553dec3e7\Atom x64\resources\app\node_modules\github\lib\git-shell-out-strategy.js:92:197)
    at C:\temp\atom\553dec3e7\Atom x64\resources\app\node_modules\github\lib\git-shell-out-strategy.js:92:367
    at <anonymous>

Steps to Reproduce

  1. Enable "Filesystem Event Diagnostics" in the github package
  2. Open a project folder that contains a git repository
  3. Open the console and see the errors when the fs watcher starts up

Expected behavior: [What you expect to happen]

No errors.

Actual behavior: [What actually happens]

Errors.

Reproduces how often: [What percentage of the time does it reproduce?]

100% of the time.

Note that if the github package's fs watcher doesn't initialize, this doesn't show normally.

Versions

This started happening on builds after 553dec3.

Seen on both Windows (10 x64 Enterprise) and macOS builds.

Additional Information

The changes to text-buffer brought in by that commit can be found here: atom/text-buffer@v13.12.4...v13.13.0. The suspicious commit being merging atom/text-buffer#280 as it introduced cpy-cli as a direct dependency instead of a devDependency as it should have been. That package has string_decoder as a dependency, and although string_decoder was already in the tree that PR moved it from a devDependency to a regular dependency.

I believe that atom/text-buffer#296 will fix it, but have been unable to test without a version of text-buffer on NPM that includes it.

@lock
Copy link

lock bot commented Jan 27, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant