Skip to content
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

[Ivy Mode] build error with ngx-permissions #30781

Closed
StickNitro opened this issue May 31, 2019 · 4 comments
Closed

[Ivy Mode] build error with ngx-permissions #30781

StickNitro opened this issue May 31, 2019 · 4 comments

Comments

@StickNitro
Copy link

🐞 bug report

I am getting the following error when running ng build --prod with enableIvy: true

ERROR in ENOENT: no such file or directory, open '/Users/neilstevens/repositories/@capp/CAPP.AssessmentCentre.Admin/node_modules/ngx-permissions/ngx-permissions.js'

Is this a regression?

No

Description

A clear and concise description of the problem...

I have a project that uses ngx-permissions and when enabling Ivy on this project the build breaks with the error message detailed above

🔬 Minimal Reproduction

Angular8-IvyMode Repo

Link to repo above

  • Clone the repo
  • Run npm i or yarn to install dependencies
  • Run ng build --prod

🔥 Exception or Error



ERROR in ENOENT: no such file or directory, open '/Users/neilstevens/repositories/@capp/CAPP.AssessmentCentre.Admin/node_modules/ngx-permissions/ngx-permissions.js'

🌍 Your Environment

Angular Version:



     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 8.0.1
Node: 12.1.0
OS: darwin x64
Angular: 8.0.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.1
@angular-devkit/build-angular     0.800.1
@angular-devkit/build-optimizer   0.800.1
@angular-devkit/build-webpack     0.800.1
@angular-devkit/core              8.0.1
@angular-devkit/schematics        8.0.1
@angular/cli                      8.0.1
@ngtools/webpack                  8.0.1
@schematics/angular               8.0.1
@schematics/update                0.800.1
rxjs                              6.4.0
typescript                        3.4.5
webpack                           4.30.0

@ngbot ngbot bot added this to the needsTriage milestone May 31, 2019
@JoostK
Copy link
Member

JoostK commented May 31, 2019

This is caused by an issue with ngx-permissions's package.json file. Its main property points to ngx-permissions.js but that file does not exist.

Work is being done in #30591 that allows overriding such faulty details. Could you please report this issue with ngx-permissions's maintainer, so they can get it fixed at the root?

@StickNitro
Copy link
Author

Looks like someone beat me to it :)

link to issue in ngx-permissions #106

@JoostK
Copy link
Member

JoostK commented Jun 19, 2019

I will close this issue as the cause has been fixed upstream and PR #30591 enables working around such issues in the future. Thanks for trying Ivy!

@JoostK JoostK closed this as completed Jun 19, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants