SolidJSS
SolidJSโ€ข6mo agoโ€ข
15 replies
siduck

js_jsx-runtime.js?v=848ce2cb' does not provide an export named 'Fragment'

I built a component lib and bundling it with tsdown, this is my config.

import { defineConfig } from "tsdown";

export default defineConfig({
  entry: {
    index: "index.ts",
    preset: "../../packages/preset/index.ts",
  },
  format: ["esm"],
  dts: true,
  minify: true,
  clean: true,
  external: ["solid-js", "unocss"],
});


My tsconfig :

{
  "compilerOptions": {
    "target": "ESNext",
    "module": "ESNext",
    "moduleResolution": "Node",
    "jsx": "preserve",
    "jsxImportSource": "solid-js",
    "strict": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "skipLibCheck": true,
    "paths": {
      "types/*": ["../types/*"]
    }
  },
  "include": ["src", "global.d.ts"]
}


Am i missing anything?
image.png
Was this page helpful?