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
webpack handled everything for that including the copy of those resources
Now copying those resources is not the biggest problem, i can do that manually through a angular.json assets>glob entry
the loading it kind of works, except that the browser always gives an error of a none existing resource, even if i catch it through a reject handler of import().then(),catch()
I don't want errors in the console for that, i know some files are not there, it completely depends if that file is shipping based on the locale string of the browser. I will fallback and so on.
I tried even with the build in http client but even that:
but that last one doesn;'t resolve at all when i am doing an import, i guess that is because it is not a valid ecma 6 module notation (with export xxx)
The thing is that with webpack this all just worked nicely out of the box
now i don't have a problem with rewriting something, but how are we supposed to really do this without errors in the console log of the browser?
Its all just dynamic, there are many "locale" files like that in our various components, we can't hard code anything because our application can be used in any country any where on the world.
Proposed solution
Not sure, at least a way that it won't report any errors in the console log..
Alternatives considered
instead of just using the import() function/keyword i use the http client to see if i could first test it, but also that is reporting an error.
The text was updated successfully, but these errors were encountered:
Which @angular/* package(s) are relevant/related to the feature request?
common
Description
I want to move to the new application builder, so moving a way from the browser builder that we have that was build on top of webpack.
Problem is we did a lot of code like this:
webpack handled everything for that including the copy of those resources
Now copying those resources is not the biggest problem, i can do that manually through a angular.json assets>glob entry
the loading it kind of works, except that the browser always gives an error of a none existing resource, even if i catch it through a reject handler of import().then(),catch()
I don't want errors in the console for that, i know some files are not there, it completely depends if that file is shipping based on the locale string of the browser. I will fallback and so on.
I tried even with the build in http client but even that:
it already report something even if i have a pipe with a catchErrror
besides that the locales for Numbro that i need to load seems to work really different..
instead of just doing this:
i now need todo this:
because that min.js file looks like this that numbro ships:
or another version that they also ship is
but that last one doesn;'t resolve at all when i am doing an import, i guess that is because it is not a valid ecma 6 module notation (with export xxx)
The thing is that with webpack this all just worked nicely out of the box
now i don't have a problem with rewriting something, but how are we supposed to really do this without errors in the console log of the browser?
Its all just dynamic, there are many "locale" files like that in our various components, we can't hard code anything because our application can be used in any country any where on the world.
Proposed solution
Not sure, at least a way that it won't report any errors in the console log..
Alternatives considered
instead of just using the import() function/keyword i use the http client to see if i could first test it, but also that is reporting an error.
The text was updated successfully, but these errors were encountered: