You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open webpack.config.js and search for the projectRoot variable (line 25 on Angular-CLI@1.6.5). The value is a hardcoded string which is the path on the computer which ejected the project. In my case /Users/sam/Projects/myproject. Not only the projectRoot is hardcoded, also the glob patterns in the CopyWebpackPlugin and CircularDependencyPlugin are hardcoded.
Desired behavior
The projectRoot should be set to __dirname and should be reused in the plugins.
Mention any other details that might be useful (optional)
Reacted by Simon Jang, Bart Callant, Alexander Hafstad, Marcel and Iben Van de Veire
Activity
fix(@angular/cli): eject now remove all hardcoded paths
fix(@angular/cli): eject now remove all hardcoded paths
SamVerschueren commentedon Jan 24, 2018
Thanks for fixing @hansl!
fix(@angular/cli): eject now remove all hardcoded paths
kaplan81 commentedon Jan 30, 2018
If I may, this fix only affects the project root. All other paths in the Webpack configuration are still hardcoded.
fix(@angular/cli): eject now remove all hardcoded paths
angular-automatic-lock-bot commentedon Sep 7, 2019
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.
fix(@angular/cli): eject now remove all hardcoded paths