Giter Site home page Giter Site logo

Comments (7)

tonovotny avatar tonovotny commented on September 20, 2024

Same here, had to go back to typescript 0.9.1

from grunt-typescript.

belov-gr avatar belov-gr commented on September 20, 2024

Running "typescript:main" (typescript) task
Verifying property typescript.main exists in config...OK
Files: src/ts/lib/collections.ts -> src/CompiledScripts
Reading C:\usr\sources\node_modules\typescript\bin\typescript.js...OK
Options: target="es3", base_path="src/ts", comments
Reading C:/usr/sources/src/ts/lib/collections.ts...OK
CAN'T READ
Warning: FileInformation is not defined Use --force to continue.

from grunt-typescript.

belov-gr avatar belov-gr commented on September 20, 2024

stacktrace:
stacktrace
CAN'T READ: Error: FileInformation is not defined
at GruntIO.readFile (C:\usr\sources\node_modules\grunt-typescript\tasks\typescript.js:96:28)
at Compiler.getSourceFile (C:\usr\sources\node_modules\grunt-typescript\tasks\typescript.js:480:51)
at Compiler.getScriptSnapshot (C:\usr\sources\node_modules\grunt-typescript\tasks\typescript.js:470:25)
at ReferenceResolver.resolveFile (C:\usr\sources\node_modules\typescript\bin\typescript.js:33321:48)
at ReferenceResolver.resolveIncludedFile (C:\usr\sources\node_modules\typescript\bin\typescript.js:33271:25)
at C:\usr\sources\node_modules\typescript\bin\typescript.js:33235:30
at Array.forEach (native)
at ReferenceResolver.resolveInputFiles (C:\usr\sources\node_modules\typescript\bin\typescript.js:33234:33)
at Function.ReferenceResolver.resolve (C:\usr\sources\node_modules\typescript\bin\typescript.js:33222:29)
at Compiler.resolve (C:\usr\sources\node_modules\grunt-typescript\tasks\typescript.js:386:66)
at Compiler.compile (C:\usr\sources\node_modules\grunt-typescript\tasks\typescript.js:317:18)
at C:\usr\sources\node_modules\grunt-typescript\tasks\typescript.js:593:139
at Array.forEach (native)
at Object. (C:\usr\sources\node_modules\grunt-typescript\tasks\typescript.js:581:20)
at Object. (C:\usr\sources\node_modules\grunt\lib\grunt\task.js:264:15)
at Object.thisTask.fn (C:\usr\sources\node_modules\grunt\lib\grunt\task.js:82:16)
at Object. (C:\usr\sources\node_modules\grunt\lib\util\task.js:282:30)
at Task.runTaskFn (C:\usr\sources\node_modules\grunt\lib\util\task.js:235:24)
at Task. (C:\usr\sources\node_modules\grunt\lib\util\task.js:281:12)
at Task. (C:\usr\sources\node_modules\grunt\lib\util\task.js:215:7)
at Task.runTaskFn (C:\usr\sources\node_modules\grunt\lib\util\task.js:238:9)
at Task. (C:\usr\sources\node_modules\grunt\lib\util\task.js:281:12)
at Task.start (C:\usr\sources\node_modules\grunt\lib\util\task.js:290:5)
at Object.grunt.tasks (C:\usr\sources\node_modules\grunt\lib\grunt.js:155:8)
at Object.module.exports as cli
at Object. (C:\Users\usr\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt:41:20)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3

from grunt-typescript.

rally25rs avatar rally25rs commented on September 20, 2024

In TS 0.9.5, TypeScript.striptQuotes() function is renamed to: TypeScript.stripStartAndEndQuotes(), however even after fixing that, there are more errors:

Running "typescript:base" (typescript) task
Warning: FileInformation is not defined Use --force to continue.

This now needs to be prefixed: TypeScript.FileInformation

Also, the function TypeScriptCompiler.addSourceUnit() has been completely removed. I have yet to figure out what the replacement is supposed to be. Actually, the entire compilation process has changed in 0.9.5, so it looks like all of this plugin's Compiler.prototype.compile function needs to be rewritten :( (see typescript source http://typescript.codeplex.com/SourceControl/latest#src/compiler/tsc.ts and search for the compile() function. This plugin's compile() was largely a copy/paste from the older tsc.ts compile() but has been completely rewritten.)

from grunt-typescript.

markrendle avatar markrendle commented on September 20, 2024

addSourceUnit is now addFile.

The biggest issue is in the diagnostics sub-system; I went through patching things until I got a "length of undefined" error which (along with it being 2am) defeated me, but it appeared to be the "text" property of a source unit or something.

I suspect a combination of massive API breakage by the TS team and possibly grunt-typescript using some methods which are not supposed to be public.

from grunt-typescript.

k-maru avatar k-maru commented on September 20, 2024

Thanks everyone.

I will release the version that corresponds to the [email protected] in a few days. Please wait.

from grunt-typescript.

k-maru avatar k-maru commented on September 20, 2024

We released [email protected] at yesterday. Please use the new version.

from grunt-typescript.

Related Issues (20)

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.