Closed bboydflo closed 5 years ago
@bboydflo What's the example you're using? The documentation does not mention an inject
method, though it was in older versions. Are you using old documentation?
Oh! I see, I thought it was the example in the README. I'll update the example project now 👍
Fixed with https://github.com/blakeembrey/free-style/commit/7220834db88614528ec9ad543b71c761fee1ae78, style injection was moved outside this library since it's usually in the domain of other libraries. E.g. https://github.com/blakeembrey/react-free-style uses an optimized DOM mutation for styles and can support server-side rendering.
great! thanks
Hi, so I cloned this repo and replaced the first line in the simple example
I also installed the lib using npm. then I did
npm run build
andnpm run serve
and got an error ("Uncaught TypeError: Style.inject is not a function").Any tips on how to fix this?