-
Notifications
You must be signed in to change notification settings - Fork 12k
ng eject breaks asset loading #9436
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
Comments
I can confirm that it also happens in 1.6.7 |
any fix ? edit: ok, the fix was to remove 'src' from grlob path:
to
|
Just hit this with cli 1.6.7 as well; fixes mentioned above worked for me 👏 |
eject functionality is no longer available in the latest version (6.x+). For custom webpack configurations the following unofficial add-on is a suggested solution: https://github.com/manfredsteyer/ngx-build-plus |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Uh oh!
There was an error while loading. Please reload this page.
Versions
Repro steps
Step 1
Include an asset
app/index.html
Step 2
Run
ng serve
Step 3
Observe the image is loaded correctly
Step 4
Eject the project
Step 5
Run the project with the npm command
Observed behavior
The image is no longer loaded correctly.
Desired behavior
The image is loaded in the same manner that the unejected project does.
EDIT
I have pinpointed the issue.
The
ng eject
command creates the given CopyWebpackPublic configThe problem is that the paths for
assets
andfavicon.ico
now contain thesrc/
directory.When renaming them to
"assets/**/*"
and"favicon.ico"
it all works.The text was updated successfully, but these errors were encountered: