Open shubaivan opened 4 years ago
Hello ! Sorry to dig up this issue, but did you solve the problem ? I have the same trouble with .replaceAll() native function EDIT : "Nodejs v14 has V8 8.4 But, replaceAll was added to V8 8.5. Nodejs v15 has V8 8.6 and thus that's the first nodejs version where you can use .replaceAll(). You can see this all described in the nodejs v15 release notes or in this specific change report."
I use
"symfony/webpack-encore-bundle": "dev-master"
with symfony 5.0.5 and faced with strange problem, native js not working in my files... with silent error, nothign happened.. but some times, I not sure why it's appear, I had big data encoding to base64 in consoleDevTools failed to parse SourceMap: data:application/json;charset=utf-
and when I decode it it was a lot of text I will describe in in a boottom...webpack.config.js
assets/js/app.js
templates/base.html.twig
and my twig which extend based and has js block too and where I exclude
awin.min.js
and finnaly my awin js file
assets/js/index/awin.js
and
assets/js/index/parts/sort.js
and I checked runtime.js present in my html file
and in that case I had empty colnsole in chrome and I made conclusion
function list()
not executed.. it happend becasue I was usetext.replace("text", "hello");
If I removedtext.replace
operation from functionlist
assets/js/index/parts/sort.jsI faced with
"sort!"
in console and made conclusionfunction list
executed.But when I add
text.replace
toassets/js/app.js
and return back it in
assets/js/index/parts/sort.js
everything works. Looks like need call
replace
function in app.js for correct working it insort.js
...and like I said before, this is example which appear time to time when
replace
function present awin.js or sort.js file and not present in app.js