Skip to content

Cannot find module error #20

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

Closed
bpalermo opened this issue Jun 11, 2016 · 5 comments
Closed

Cannot find module error #20

bpalermo opened this issue Jun 11, 2016 · 5 comments
Labels

Comments

@bpalermo
Copy link

Hi,

I'm trying to use with angular 1.5.6 and browserify but I receive this errors:

Cannot find module './translations'
Cannot find module './filter'

Any ideas?

Thanks,
Bruno

@wildlyinaccurate
Copy link
Owner

How are you installing/using angular-relative-date?

@bpalermo
Copy link
Author

bpalermo commented Jun 12, 2016

I'm using with this boilerplate:

https://github.com/jakemmarsh/angularjs-gulp-browserify-boilerplate

Installed with:

npm i angular-relative-date --save-dev

Using:

import 'angular-relative-date'

const requires = [
  ...
  'relativeDate'
  ...
];

angular.module('app', requires);
Cannot find module './translations' from '/home/.../node_modules/angular-relative-date/dist'
Cannot find module './filter' from '/home/.../node_modules/angular-relative-date/dist'

@wildlyinaccurate
Copy link
Owner

Thanks, I'm able to reproduce this. I'll try and get to the bottom of it ASAP.

wildlyinaccurate added a commit that referenced this issue Jun 12, 2016
This is a workaround for the browserify issue reported in ##20, since
browserify/browserify#1151 seems to be dead in the
water.
@wildlyinaccurate
Copy link
Owner

I've just published version 2.1.0 to npm. Could you please update and let me know if that resolves the issue?

@bpalermo
Copy link
Author

Working... Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants