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
HTML elements not styled with shadowDOM shared styles when project uses parcel.
馃 Expected Behavior
HTML elements in every view are styled with shared styles even when project uses shadowDOM and Parcel.
馃槸 Current Behavior
Created aurelia project with 'npx makes aurelia' with parcel, typescript and shadowDOM.
Installed bootstrap with npm i bootstrap
Added link to bootstrap 5.2.x css at index.html
imported css at main.ts and added bootstrap to sharedStyles of StyleConfiguration.shadowDOM().
Added some elements with bootstrap style classes to index.html and my-app.html
-> Elements at index.html are styled of course, but elements at my-app.html aren't.
No errors in developer console
However shared styles seem to work when project is created with otherwise same configuration but select Webpack instead of Parcel.
馃拋 Possible Solution
馃敠 Context
I wan't to use Parcel and I'm unable to style elements with shared styles.
Workaround is to import all needed css files to views (or use Webpack instead of Parcel).
馃悰 Bug Report
HTML elements not styled with shadowDOM shared styles when project uses parcel.
馃 Expected Behavior
HTML elements in every view are styled with shared styles even when project uses shadowDOM and Parcel.
馃槸 Current Behavior
-> Elements at index.html are styled of course, but elements at my-app.html aren't.
No errors in developer console
However shared styles seem to work when project is created with otherwise same configuration but select Webpack instead of Parcel.
馃拋 Possible Solution
馃敠 Context
I wan't to use Parcel and I'm unable to style elements with shared styles.
Workaround is to import all needed css files to views (or use Webpack instead of Parcel).
馃捇 Code Sample
Repo with Parcel:
https://github.com/pesaarel/dummy-aurelia2-app-parcel.git
Result:
Repo with Webpack:
https://github.com/pesaarel/dummy-aurelia2-app-webpack.git
Result:
馃實 Your Environment
The text was updated successfully, but these errors were encountered: