Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Cannot find module './lib' from 'index.js' #18

Closed
Pitbi opened this issue Mar 20, 2019 · 2 comments
Closed

Cannot find module './lib' from 'index.js' #18

Pitbi opened this issue Mar 20, 2019 · 2 comments

Comments

@Pitbi
Copy link

Pitbi commented Mar 20, 2019

Hey,

I have the following error when i try to use the lib (v3.3.3 - installed via npm):

Cannot find module './lib' from 'index.js'

To fix it I change the file /index.js with:

var AC = require("./lib").AccessControl;

=>

var AC = require("./lib/src").AccessControl;

:)

@koladilip
Copy link
Contributor

Hi @Pitbi, Thanks again for letting me know, I have fixed published to 3.3.4 npm version.

@Pitbi
Copy link
Author

Pitbi commented Mar 20, 2019

With pleasure @koladilip!

role-acl deserves our attention! :) It's a useful and simple lib!

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

No branches or pull requests

2 participants