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
@illlia_solid-css-styled.js?v=2cbc0185:33 Uncaught ReferenceError: React is not defined at Styled (@illlia_solid-css-styled.js?v=2cbc0185:33:7) at chunk-6GY42LFI.js?v=13090239:633:14 at untrack (chunk-6GY42LFI.js?v=13090239:513:12) at Object.fn (chunk-6GY42LFI.js?v=13090239:629:11) at runComputation (chunk-6GY42LFI.js?v=13090239:809:22) at updateComputation (chunk-6GY42LFI.js?v=13090239:788:3) at devComponent (chunk-6GY42LFI.js?v=13090239:644:3) at createComponent (chunk-6GY42LFI.js?v=13090239:1432:10)
@illlia_solid-css-styled.js?v=2cbc0185:33 Uncaught ReferenceError: React is not defined at Styled (@illlia_solid-css-styled.js?v=2cbc0185:33:7) at chunk-6GY42LFI.js?v=13090239:633:14 at untrack (chunk-6GY42LFI.js?v=13090239:513:12) at Object.fn (chunk-6GY42LFI.js?v=13090239:629:11) at runComputation (chunk-6GY42LFI.js?v=13090239:809:22) at updateComputation (chunk-6GY42LFI.js?v=13090239:788:3) at devComponent (chunk-6GY42LFI.js?v=13090239:644:3) at createComponent (chunk-6GY42LFI.js?v=13090239:1432:10)
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
css styled utility for css utility frameworks like tailwind. Latest version: 0.0.3, last published: 13 minutes ago. Start using @illlia/solid-css-styled in your project by running
npm i @illlia/solid-css-styled
npm i @illlia/solid-css-styled
. There are no other projects in the npm registry using @illlia/solid-css-styled.