-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Torba::Errors::NothingToImport: {:package=>"angular", :path=>"lib/angular.js"} on Heroku deploys #22
Comments
Hmm, that's odd. |
I'm not exactly sure how to reproduce it, as it was the result of a lot of experimentation. I think my original Torbafile had:
but then it was changed to:
Since it places lib/angular.js at the top level (angular-1231231/angular/angular.js) and the original version imports everything, so it'd be at angular-123123/angular/lib/angular.js in the original, that since it cached the original version and didn't update it when I changed it to have a specific import statement, it was looking for a nonexistent file in that folder. And I've checked both versions of the folder in my local .torba folder: MacBook-Air:boardvitals arkavon$ ls ~/.torba/angular-2ffa60d4/angular/ As you can see, the cache on my local is not a 1 to 1 mirror of the remote archive, it is specifically whatever I import. |
We're talking about different caches now. The |
Oh, I see. I have absolutely no idea then why it wouldn't find it. It's our staging server, I was pushing to it a lot when experimenting with Torba, and simultaneously when I wasn't using it, others were pushing branches that did not have Torba on it again. Maybe it had something to do with that. We did not have the same issue pushing to production. |
Let's leave it open for a while. Maybe someone will figure out how to reproduce this. |
Yeah, and they have a solution that will show up in Google if they have same issue. |
Hey, just an FYI, when I deployed to my staging server a slightly altered path definition for my angular package, I got this error:
I think it was because my cache had cached a whitelisted set of files from the NPM that didn't include my new path. The fix for this was:
The normal assets:clobber call didn't work, so I used heroku-repo's purge_cache ability to do it. This shouldn't happen too often, as normally you're adding rows to the Torba file, not changing the directories you're whitelisting.
The text was updated successfully, but these errors were encountered: