Code Monkey home page Code Monkey logo

typescript-middleware's People

Contributors

brn avatar johncant avatar marcbachmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

typescript-middleware's Issues

Typescript is not installed yet

Hey,

Just giving this a go for the first time. When running my application I get:

D:\Projects\GitHub\studiosnail\node_modules\typescript-middleware\lib\typescript.inject.js:26
  })();
    ^
Error: typescript is not installed yet.
run 'npm install typescript -g'
    at D:\Projects\GitHub\studiosnail\node_modules\typescript-middleware\lib\typescript.inject.js:24:13
    at Object.<anonymous> (D:\Projects\GitHub\studiosnail\node_modules\typescript-middleware\lib\typescript.inject.js:26:5)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\Projects\GitHub\studiosnail\node_modules\typescript-middleware\lib\compiler.js:9:18)

However running npm install typescript -g does not resolve the issue.

Entry file not checked for modifications

Modifying the entry file does not cause a rebuild.

Linux Mint 18.3, Node v8.10.0, Express 4.15.5, TypeScript 2.7.2

Changing resolved.resolved to [{ path: ts }].concat(resolved.resolved) at middleware.js:146 should fix the problem.

ありがとうございます

TypeError: undefined is not a function

Hope the trace helps. Local install, no packages installed globally.

/node_modules/typescript-middleware/lib/option-parser.js:124
  if (!pathutil.exists(filePath)) {
                ^
TypeError: undefined is not a function
    at OptionParser._setLanguageAndTerritory (/node_modules/typescript-middleware/lib/option-parser.js:124:17)
    at OptionParser._setLocale (/node_modules/typescript-middleware/lib/option-parser.js:104:13)
    at OptionParser.parse (/node_modules/typescript-middleware/lib/option-parser.js:87:15)
    at module.exports (/node_modules/typescript-middleware/lib/middleware.js:171:16)
    at Object.<anonymous> (/gulpfile.js:29:31)
    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)

node --version => v0.12.0
gulp --version => 3.8.11
tsc --version => 1.4.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.