Skip to content

Failed to load the atom-typescript package: Cannot find module '../lang/utils' #1071

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

Closed
valepu opened this issue Sep 20, 2016 · 13 comments
Closed
Labels

Comments

@valepu
Copy link

valepu commented Sep 20, 2016

Hello,
I am having an issue when loading atom-typescript:

Cannot find module '../lang/utils'
Hide Stack Trace
Error: Cannot find module '../lang/utils'
    at Module._resolveFilename (module.js:339:15)
    at Function.Module._resolveFilename (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\native-compile-cache.js:50:27)
    at Object.<anonymous> (C:\...\.atom\packages\atom-typescript\dist\main\atom\atomConfig.js:2:15)
    at Module._compile (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\native-compile-cache.js:50:27)
    at Object.<anonymous> (C:\...\.atom\packages\atom-typescript\dist\main\atomts.js:2:18)
    at Module._compile (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\native-compile-cache.js:50:27)
    at Package.module.exports.Package.requireMainModule (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\package.js:718:27)
    at C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\package.js:117:28
    at Package.module.exports.Package.measure (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\package.js:92:15)
    at Package.module.exports.Package.load (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\package.js:106:12)
    at PackageManager.module.exports.PackageManager.loadPackage (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\package-manager.js:457:14)
    at C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\package-manager.js:402:19
    at Config.module.exports.Config.transact (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\config.js:312:16)
    at PackageManager.module.exports.PackageManager.loadPackages (C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\package-manager.js:397:19)
    at C:\...\AppData\Local\atom\app-1.10.2\resources\app.asar\src\atom-environment.js:754:28

When atom shows me this issue it says that it's already been reported and sends me here: #1007 but it looks like a different issue to me.

OS: Windows 10
Atom: 1.10.2
Atom-Typescript: 10.1.6

@daristo
Copy link

daristo commented Oct 17, 2016

I have this on ubuntu
and I cant figure it out!

@valepu
Copy link
Author

valepu commented Oct 17, 2016

Oh, i forgot: Uninstalling and reinstalling the package did the job for me

@daristo
Copy link

daristo commented Oct 17, 2016

oh

@daristo
Copy link

daristo commented Oct 17, 2016

That did not fix it for me.

@Kampfkarren
Copy link

Sorry it did not work for you, but to anyone coming from Atom uninstalling and reinstalling worked for me as well.

@starstuffharvestingstarlight
Copy link

starstuffharvestingstarlight commented Nov 7, 2016

Hi all, reinstalling the package (and atom) didn't work, still getting this error.

$ atom -v
Atom    : 1.11.2
Electron: 0.37.8
Chrome  : 49.0.2623.75
Node    : 5.10.0

edit: seems like atom redirected me here, but my error is actually #1124

@marcusmalmberg
Copy link

Updating to atom-typescript 10.1.13 solved this for me

@daristo
Copy link

daristo commented Dec 14, 2016

I had a linux system and a sync-settings package which downloaded windows settings so thats why it did not work for me.

@erkie
Copy link

erkie commented Dec 20, 2016

I have atom-typescript 10.1.13 and still get the error.

@threshi
Copy link

threshi commented Dec 24, 2016

Error: Cannot find module 'typescript'
at Module._resolveFilename (module.js:455:15)
at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
at Object.makeTsGlobal (/Users/user/.atom/packages/atom-typescript/dist/typescript/makeTypeScriptGlobal.js:16:17)
at Object. (/Users/user/.atom/packages/atom-typescript/dist/main/atomts.js:4:24)
at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:201:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:747:27)
at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:118:28
at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:92:15)
at Package.module.exports.Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:106:12)
at PackageManager.module.exports.PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:468:14)
at /Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:412:19
at Config.module.exports.Config.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:312:16)
at PackageManager.module.exports.PackageManager.loadPackages (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:407:19)
at /Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:772:28

@j0nimost
Copy link

j0nimost commented Feb 6, 2017

Has anyone found a solution for this problem

@FernandoBoza
Copy link

i had to update this and my jshint linter and ran into this issue

@github-actions
Copy link

This issue has been marked as stale because it did not have any activity for the last 90 days or more. Remove the stale label or comment or this will be closed in 14 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants