Closed riede closed 5 years ago
Would you provide a minimal repo where we can reproduce the problem?
I will try to provide a minimal Repo. But I think it could take a cupple of days.
Error in angular-2-local-storage, remove or use other library to fix problem
@quangquy87 Are you sure? We already use angular-2-local-storage since Angular 5. Everything works fine with Angular 7.2.2. Updating to Angular 7.2.3 lets the application crash at runtime using --prod
@quangquy87 Are you sure? We already use angular-2-local-storage since Angular 5. Everything works fine with Angular 7.2.2. Updating to Angular 7.2.3 lets the application crash at runtime using
--prod
I am sure, I have encountered the same error and took several days to find the problem
I am sure, I have encountered the same error and took several days to find the problem
Thanks. You're right, by using angular-2-local-storage in a minimal repro-app I could reproduce the error. Nevertheless the error has only existed since Angular 7.2.3
@quangquy87 Iβve created a Pull Request to fix the Problem. A new version is already available for angular-2-local-storage.
So, the Issue can be closed.
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.
π Bug report
Command (mark with an
x
)Is this a regression?
No
Description
Building my SPA with
ng build --prod
works well. But when I want to load it initially, it crashed. Serving with--source-map
delivers the following error:When I do not use the production flag everything works well.
ng build --aot --optimization
works, too - I can load the page and everything is ok. I think there might be a bug in the Build Optimizer.π₯ Exception or Error
π Your Environment
Anything else relevant? Here is my package.json: