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
{{ message }}
Repository navigation
Uncaught SyntaxError: Identifier 'chrome' has already been declared #4978
My apologies. It turns out it is something Rollup is doing. If I go into the built esm file, I can rename chrome to something else, then it all works just fine. I just hadn't run into this evaluating other WC libraries, so I figured UI5 must be declaring chrome somewhere as well where it conflicted.
Thanks for the assistance. I was able to use your Code Sandbox to recreate the issue using a Rollup build instead of Parcel.
I didn't end up looking into it further because we chose not to use these UI components. Sorry I can't shed more light on that new issue. It's been a lay-off and almost a year since I was working on this.
this could be due to multiple instances of ui5-webcomponents installed in node_modules. you can check with npm ls @ui5/webcomponents or yarn why @ui5/webcomponents to see if this is the case and try to remove one of them.
another thing that could help is to delete node_modules and do a new npm install or yarn install.
this is all I can say without a reproducible issue.
Activity
ilhan007 commentedon Mar 29, 2022
Hello @rpsirois
thank you for your interest in using the UI5 Web Components.
Here you can see a code sample importing the Button in version 1.2.3 - I don't get the described error:
https://codesandbox.io/s/ui5-webcomponents-forked-e2ipfr?file=/index.html
You can edit the sample and if you reproduce the error you can get back to us.
Or, perhaps add more information on how to reproduce it - you can also contact me offline.
If it is ok, can you share with us the Business app you might use the components for?
Best Regards,
ilhan M.
UI5 Web Components Team
rpsirois commentedon Mar 30, 2022
My apologies. It turns out it is something Rollup is doing. If I go into the built esm file, I can rename
chrometo something else, then it all works just fine. I just hadn't run into this evaluating other WC libraries, so I figured UI5 must be declaringchromesomewhere as well where it conflicted.Thanks for the assistance. I was able to use your Code Sandbox to recreate the issue using a Rollup build instead of Parcel.
wesleyyee commentedon Jan 20, 2023
@rpsirois what did you end up doing to fix the issue?
rpsirois commentedon Jan 20, 2023
I didn't end up looking into it further because we chose not to use these UI components. Sorry I can't shed more light on that new issue. It's been a lay-off and almost a year since I was working on this.
pskelin commentedon Feb 9, 2023
this could be due to multiple instances of ui5-webcomponents installed in node_modules. you can check with
npm ls @ui5/webcomponentsoryarn why @ui5/webcomponentsto see if this is the case and try to remove one of them.another thing that could help is to delete
node_modulesand do a newnpm installoryarn install.this is all I can say without a reproducible issue.