upgrading @tabler/icons-solidjs from 3.40.0 to 3.41.0 results in react/jsx-runtime error in vite
Author: taivoCreated Apr 26, 2026Updated Sep 7, 2026
Labelsbug
Description
After upgrading @tabler/icons-solidjs from 3.40.0 to 3.41.x, my vite 8.x app gets the following error on the server side:
Error: Cannot find module 'react/jsx-runtime' imported from '/.../node_modules/.vite/deps_ssr/@tabler_icons-solidjs.js'
at runInRunnerObject (workers/runner-worker/index.js:106:3)
... 4 lines matching cause stack trace ...
at maybeCaptureError (workers/runner-worker/index.js:50:10) {
cause: Error: Cannot find module 'react/jsx-runtime' imported from '/.../node_modules/.vite/deps_ssr/@tabler_icons-solidjs.js'
at runInRunnerObject (workers/runner-worker/index.js:106:3)
at async Promise.all (index 0)
...Here is a relevant analysis from ClaudeCode
Found the bug. createSolidComponent.jsx is a raw JSX source file with no @jsxImportSource solid-js pragma.
When Vite processes it for SSR — triggered by the "solid" export condition pointing to dist/source/ —
it applies React's JSX transform by default, injecting react/jsx-runtime.
...
Root cause confirmed: Version 3.41.0 introduced a "solid" export condition that points to raw .jsx source
files (dist/source/). Previously (3.40.0), only pre-built cjs/esm bundles existed. When Vite resolves via the
solid condition, it picks up createSolidComponent.jsx — which contains JSX with no
@jsxImportSource solid-js pragma — and applies React's JSX transform, injecting react/jsx-runtime.Package
- @tabler/icons
- @tabler/icons-eps
- @tabler/icons-pdf
- @tabler/icons-png
- @tabler/icons-webfont
- @tabler/icons-sprite
- @tabler/icons-preact
- @tabler/icons-react
- @tabler/icons-react-native
- @tabler/icons-solid
- @tabler/icons-svelte
- @tabler/icons-svelte-runes
- @tabler/icons-vue
- Figma plugin
- source/main
- other/not relevant
Version
3.41.0
Browser
- Chrome/Chromium
- Firefox
- Safari
- Edge
- iOS Safari
- Opera
- Other/not relevant
Operating system
- Windows
- Linux
- macOS
- ChromeOS
- iOS
- Android
- Other/not relevant
Steps to reproduce
See description
Checklist
- I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)
Source: tabler/tabler-icons