angular-seed icon indicating copy to clipboard operation
angular-seed copied to clipboard

Cannot find module '.tmp/Rx.min.js'

Open JonCatmull opened this issue 10 years ago • 9 comments

IMPORTANT: This repository's issues are reserved for feature requests and bug reports. Do not submit support requests here.

Steps to reproduce and a minimal demo of the problem

Created new repo using following steps:

git clone --depth 1 https://github.com/mgechev/angular-seed.git
cd angular-seed
sudo npm install
npm start

Current behavior

Errors on npm start

Error in plugin 'run-sequence(build.html_css)'                                                            
Message:                                                                                                             
    Cannot find module '.tmp/Rx.min.js'                                                                              
Details:                                                                                                             
    code: MODULE_NOT_FOUND                                                                                           
Stack:                                                                                                               
Error: Cannot find module '.tmp/Rx.min.js'                                                                           
    at Function.Module._resolveFilename (module.js:339:15)

Expected/desired behavior

Start app and livereload page

Other information

I have made and run a project before on a older version of the seed back when it was on angular-rc6.

I'm on a mac running macOS Sierra

node v 6.9.0 npm v 3.10.8

JonCatmull avatar Oct 18 '16 17:10 JonCatmull

Would you run ./node_modules/.bin/gulp build.bundle.rxjs and try npm start again?

mgechev avatar Oct 18 '16 17:10 mgechev

Thankyou that has fixed it, out of interest why did this happen? Is it a bug or something I did?

JonCatmull avatar Oct 19 '16 18:10 JonCatmull

On any reason the postinstall hook didn't execute properly.

mgechev avatar Oct 19 '16 20:10 mgechev

@mgechev I faced the same issue, thanks for the fix.

zeeshanjan82 avatar Nov 17 '16 12:11 zeeshanjan82

I too faced the same issue after adding a dependency.Thanks @mgechev

amalshehu avatar Dec 02 '16 09:12 amalshehu

Using the seed on Windows Subsystem for Linux. I ran first npm install, then yarn install which did not complete. Maybe that's how I got this error. But Minko's fix fixed it.

MilosStanic avatar Mar 03 '17 12:03 MilosStanic

sudo gulp build.bundle.rxjs

nvsky avatar Jun 02 '17 03:06 nvsky

@mgechev Faced the same issue, thanks for the fix. npm postinstall should also fix the issue just in case of multiple packages failures of post script.

saikiranmandhala avatar Jun 14 '17 07:06 saikiranmandhala