Skip to content

Node 0.12 tsserver fails #11840

Closed
Closed

Description

TypeScript Version: 2.0.6
Node Version: 0.12.17

Code

$ tsserver

Expected behavior:
no errors

Actual behavior:

/Users/josh/.nvm/versions/node/v0.12.17/lib/node_modules/typescript/lib/tsserver.js:56136
                    basePath = ts.combinePaths(os.homedir(), "Library/Applicat
                                                  ^
TypeError: undefined is not a function
    at getGlobalTypingsCacheLocation (/Users/josh/.nvm/versions/node/v0.12.17/lib/node_modules/typescript/lib/tsserver.js:56136:51)
    at ts.server.ts.server (/Users/josh/.nvm/versions/node/v0.12.17/lib/node_modules/typescript/lib/tsserver.js:56479:160)
    at ts (/Users/josh/.nvm/versions/node/v0.12.17/lib/node_modules/typescript/lib/tsserver.js:56485:7)
    at Object.<anonymous> (/Users/josh/.nvm/versions/node/v0.12.17/lib/node_modules/typescript/lib/tsserver.js:56486:3)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)

os.homedir is not in Node API for 0.12
package.json says typescript supports >=0.8

Activity

  1. added
    Fixed
    on Oct 25, 2016
  2. added a commit that references this issue on Oct 26, 2016
  3. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFixed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions