Comments (6)
I couldn't reproduce the trouble.
Please check if the file is not there really. if you find the file in another path,let me know the path and the OS you use.
I've commit the new code, so try it please. If you could write a fix, send me pull request.
from grunt-typescript.
Here's how I reproduce it:
cd /tmp/
mkdir testproj
cd testproj/
mkdir typescript
touch typescript/index.ts
npm install grunt typescript grunt-typescript
vim grunt.js
./node_modules/.bin/grunt
Here's grunt.js
file:
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-typescript');
grunt.initConfig({
typescript: {
base: {
src: ['typescript/index.ts'],
dest: './',
options: {
module: 'amd',
base_path: 'typescript'
}
}
},
});
grunt.registerTask('default', 'typescript');
};
Here's what I get:
Error: ENOENT, no such file or directory '/tmp/testproj/node_modules/grunt-typescript/node_modules/typescript/bin/typescript.js'
at Object.fs.openSync (fs.js:338:18)
at Object.fs.readFileSync (fs.js:182:15)
at Object.module.exports (/tmp/testproj/node_modules/grunt-typescript/tasks/typescript.js:71:27)
at Task.helper (/tmp/testproj/node_modules/grunt/lib/util/task.js:117:19)
at Object.<anonymous> (/tmp/testproj/node_modules/grunt-typescript/tasks/typescript.js:55:15)
at Object.task.registerMultiTask.thisTask (/tmp/testproj/node_modules/grunt/lib/grunt/task.js:109:15)
at Object.task.registerTask.thisTask.fn (/tmp/testproj/node_modules/grunt/lib/grunt/task.js:58:16)
at Task.<anonymous> (/tmp/testproj/node_modules/grunt/lib/util/task.js:341:36)
at Task.<anonymous> (/tmp/testproj/node_modules/grunt/lib/util/task.js:317:9)
at Task.<anonymous> (/tmp/testproj/node_modules/grunt/lib/util/task.js:344:11)
from grunt-typescript.
In my environment, removing typescript from the npm install
allowed me to continue working. It looks like grunt-typescript depends on typescript being deployed via its dependency and blows up otherwise.
It should be fixed here because otherwise I can't specify a specific typescript version in my package.json.
from grunt-typescript.
thanks david!
I will respond to recursively search in the next version.
from grunt-typescript.
I released the new version 0.0.3.
It searches for typescript.js recursively.
from grunt-typescript.
Yep, seems to have solved it, thanks.
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.