Comments (7)
Same here, had to go back to typescript 0.9.1
from grunt-typescript.
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.
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.
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.
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.
Thanks everyone.
I will release the version that corresponds to the [email protected] in a few days. Please wait.
from grunt-typescript.
We released [email protected] at yesterday. Please use the new version.
from grunt-typescript.
Related Issues (20)
- 0.6.1 -> 0.6.2 is not a "patch" revision HOT 1
- Does not detect file changes on vagrant synced_folder HOT 1
- Typescript 1.5 options missing HOT 1
- Upgrade "typescript" package dependency from 1.5.0-beta to 1.5.3 HOT 6
- Allow compilation of System.JS and UMD modules HOT 2
- Add option to use custom TypeScript compiler version HOT 2
- Single destination file is empty HOT 2
- Transpile only files which have changed HOT 2
- Map files
- JSX compilerOption not supported
- es6 doesn't compile classes HOT 5
- Question HOT 1
- Customize typescript compiler version? HOT 1
- Warning: path.replace is not a function Used HOT 1
- Wrong default target
- Update TypeScript Dep. to 1.8.2 HOT 6
- grunt-typescript VS gtunt-ts: why maintaining two plugins that do the same? HOT 6
- Empty js file when compiling ts to single js file
- BasePath option has been deprecated HOT 1
- Running typescript task with version 6.2 gives me "duplicate identifier" errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-typescript.