jerome Posted April 27, 2015 Share Posted April 27, 2015 Hello, I just forked the BJS repo in order to fix the little bug about curve3.Before doing anything else and after the initial npm install, I check if the compiler works well :$ gulp typescriptError: Cannot find module 'gulp-param' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/var/www/html/BJS/Babylon.js/Tools/Gulp/gulpfile.js:1:74) 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 Module.require (module.js:364:17)I just add it manually :$ sudo npm install gulp-paramthen it works. This post is just to feed back about this missing module. Quote Link to comment Share on other sites More sharing options...
jerome Posted April 27, 2015 Author Share Posted April 27, 2015 mmh... it seems something else is broken also I just edited the math/ts file and tried to compile :$ gulp typescript[14:37:02] Using gulpfile /var/www/html/BJS/Babylon.js/Tools/Gulp/gulpfile.js[14:37:02] Starting 'typescript-to-js'.../var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/node_modules/typescript/bin/typescript.js:24325 processRootFile(host.getDefaultLibFileName(options), true); ^TypeError: Object #<Host> has no method 'getDefaultLibFileName' at Object.createProgram (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/node_modules/typescript/bin/typescript.js:24325:34) at Project.compile (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/project.js:255:27) at /var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/main.js:63:32 at Project.resolveAll (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/project.js:213:13) at CompileStream.compile (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/main.js:62:27) at CompileStream.end (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/release/main.js:75:14) at DestroyableTransform.onend (/var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-sourcemaps/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:523:10) at DestroyableTransform.g (events.js:180:16) at DestroyableTransform.emit (events.js:117:20) at /var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-sourcemaps/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:965:16Is there something missing on my computer within the gulp world ?or another TS curse upon Linux users ? Quote Link to comment Share on other sites More sharing options...
jerome Posted April 27, 2015 Author Share Posted April 27, 2015 npm version : 2.8.4 (just updated)gulp version : CLI 3.8.11, local 3.8.11tsc version (just in case) : 1.5.0-alpha Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 27, 2015 Share Posted April 27, 2015 I know about 'gulp-param'. There is a new 'target', 'makeUgly', in gulpfile.ts that allows you to uglify any .js you specify as a command line arg. I must admit that node / npm is a black box for me. The readme.md says you should also do a npm update, after npm install. Might this not solve both problems? If there was something to do when adding a new dependency, I unfortunately do not what that is. I do know that I have gulped on Linux in the last 24 hours. Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 27, 2015 Share Posted April 27, 2015 When using require to load an npm package, you should also include the package in package.json (https://github.com/BabylonJS/Babylon.js/blob/master/Tools/Gulp/package.json) and define the version that is required. only then will npm understand this is a dependency needed. Want me to add gulp-param to the dependency party? What version did you use?@jerome - gulp already worked for you, if I remember correctly. did you change anything? this should actually work (unless the gulpfile was changed again). Quote Link to comment Share on other sites More sharing options...
jerome Posted April 27, 2015 Author Share Posted April 27, 2015 I didn't change anything but just updated npm.This bug is not recent for me : the last time I needed to fix something, it went wrong on april 3rd (http://www.html5gamedevs.com/topic/13607-gulp-compilation-error-in-typescript-module/?p=77739 ) and I had to give the code to DK so he could change it for me at the time. So, this is the same bug. here's my current npm list (quite long, sorry), notice at the end the ERR messages : [email protected] /var/www/html/BJS/Babylon.js/Tools/Gulp├─┬ [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ └─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ ├── [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ └─┬ [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ ├─┬ [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ └─┬ [email protected]│ │ └─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ ├── [email protected]│ └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ └─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └─┬ [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ └─┬ [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ └─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ └── [email protected]├── [email protected] extraneous├── [email protected]├─┬ [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ ├── [email protected]│ └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ └─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ ├── [email protected] invalid│ └─┬ [email protected]│ └─┬ [email protected]│ └── [email protected]├─┬ [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ └─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ ├── [email protected]│ │ │ │ └── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ └── [email protected]│ └── [email protected]├─┬ [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ └─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ ├── [email protected]│ │ ├─┬ [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├─┬ [email protected]│ │ │ │ └── [email protected]│ │ │ └─┬ [email protected]│ │ │ └── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├── [email protected]│ ├─┬ [email protected]│ │ └─┬ [email protected]│ │ └─┬ [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ ├── [email protected]│ │ └── [email protected]│ ├─┬ [email protected]│ │ ├─┬ [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ ├── [email protected]│ │ │ └── [email protected]│ │ └── [email protected]│ └─┬ [email protected]│ └── [email protected]└── [email protected] ERR! extraneous: [email protected] /var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-paramnpm ERR! invalid: [email protected] /var/www/html/BJS/Babylon.js/Tools/Gulp/node_modules/gulp-typescript/node_modules/typescript Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 27, 2015 Share Posted April 27, 2015 @RaananW - Yes, please. Checking the Github for this has not changed in over 4 months, I am surely using the current version '0.6.3' Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 27, 2015 Share Posted April 27, 2015 Ok, PR created solving both problems.@jerome - the problem is that you are using tsc 1.5 alpha (was a bug in gulp-typescript). I updated package.json, works well on my local machine here. Quote Link to comment Share on other sites More sharing options...
jerome Posted April 27, 2015 Author Share Posted April 27, 2015 Ok, I'll re-test tomorow... from scratch Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 27, 2015 Share Posted April 27, 2015 nothing from scratch just an npm update and you are all set. Quote Link to comment Share on other sites More sharing options...
jerome Posted April 27, 2015 Author Share Posted April 27, 2015 don't I need to get your last gulp and gulp configuration from the repo before ? Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 27, 2015 Share Posted April 27, 2015 Already there. Should work now. Quote Link to comment Share on other sites More sharing options...
jerome Posted April 27, 2015 Author Share Posted April 27, 2015 Ok, will test : npm updateAnd if it complains about something, I will erase all and rebuild the repo from scratch (fed up with these github push errors then) Quote Link to comment Share on other sites More sharing options...
jerome Posted April 28, 2015 Author Share Posted April 28, 2015 thank you RaananEverything works fine now... after a reset from scratch (didn't want the forced commit pollution) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.