illia
Uncaught ReferenceError: React is not defined
Hey there! Please help. I can't figure out this error.
I have a tiny solid-js project that works ok. I wanted to reuse some code and created this npm package(https://www.npmjs.com/package/@illlia/solid-css-styled?activeTab=code) (1 file basically). In essence I replace my inside project code with a 1:1 replica from that npm package.
All npm package does is creates "tailwind-styled" utility that works like solid-styled-components, but uses tailwind classes. Anyway, that function returns <Dynamic ... > solid-js component.
When i try to use code from that npm package in my solid-js project I get
error
I can't figure out why. I have tests in my npm package that pass successfully that are using solid-testing-library. I don't have any dependencies on React in any of my projects
The only dependency i have inside my npm package is solid
20 replies