Uncaught TypeError: Failed to set the 'adoptedStyleSheets' property on 'ShadowRoot': Failed to convert value to 'CSSStyleSheet'.
at HTMLElement.adoptStyles (aim-design.js:9)
at HTMLElement.initialize (aim-design.js:9)
at new rt (aim-design.js:9)
at new Et (aim-design.js:9)
at new s (aim-design.js:2)
https://www.github.com/BhavyaSingh2611/aim-design
bundle assets using npm run build
open a.html
view console error is there
the custom element is also not rendering
show a material design styled button with absd written in it
plain absd is shown (text)
I am getting the same error. How did you solve this problem?
Hi @luis-pato I was about to use for my next project Aim Design but the objectives are changed after the non resolution of the issue for a week.
Aim design is a framework helpful in creating ui which is still in alpha stage thanks I am reopening this issue
If this interests you, i have fixed the error by using postcss (i am using rollup for my project) and littcss (because i am using webcomponents)
Please refer to https://github.com/BhavyaSingh2611/aim-design/commit/d00d905f6459258d064f8f52ab09d041230d14f9 commit as there are further commits
Can you if possible give me a solution with webpack
@luis-pato for now give me the source of your project
The postcss has nice documentation on how to use it with webpack!
https://github.com/postcss/postcss#webpack
By the what's the fix using postcss
@luis-pato by the way what's the fix using postcss
My problem was that i am using webcomponent and i wasn't exporting the css correctly
@luis-pato By the i was using scss
@luis-pato By the i was using scss
Please like in the webpack doku how to user scss. I am sure postcss can help you. They have lots of information on their websites! ;)
Most helpful comment
Please like in the webpack doku how to user scss. I am sure postcss can help you. They have lots of information on their websites! ;)