with devtools added getting export setStyleProperty was not found in module error

未关闭
#131 3 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@restareaByWeezy 已经在做这个了。

开始于 2026年3月9日。

  • #169 来自 @restareaByWeezy —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清

调研方向

首先,使用报告的 React 19.2.3 和 Next.js 16.1.1 版本运行仓库 examples/ 目录中的示例。然后检查从 solid-js/web 生成的 Shell.tsx 导入以及列出的 TanStack devtools 包;当 devtools 示例能够构建且不再出现缺少 setStyleProperty export 的错误时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

TanStack Pacer version

0.19.1

Framework/Library version

React 19.2.3 nextjs 16.1.1

Describe the bug and the steps to reproduce it
import { lazy } from "react";

export const TanstackDevtools =
  process.env.NODE_ENV === "production"
    ? () => null
    : lazy(() =>
        Promise.all([
          import("@tanstack/react-devtools"),
          import("@tanstack/react-form-devtools"),
          import("@tanstack/react-query-devtools"),
          import("@tanstack/react-pacer-devtools"),
          import("@tanstack/react-table-devtools"),
        ]).then(([devtools, form, query, pacer, _table]) => ({
          default: (
            props: React.ComponentProps<typeof devtools.TanStackDevtools>
          ) => (
            <devtools.TanStackDevtools
              config={{
                position: "bottom-right",
              }}
              eventBusConfig={{
                debug: false,
                connectToServerBus: true,
              }}
              {...props}
              plugins={[
                {
                  name: "Tanstack Query",
                  render: <query.ReactQueryDevtoolsPanel />,
                },
                // form.formDevtoolsPlugin(),
                {
                  name: "TanStack Form",
                  render: <form.FormDevtoolsPanel />,
                },
                pacer.pacerDevtoolsPlugin(),
              ]}
            />
          ),
        }))
      );
console:dev: Export setStyleProperty doesn't exist in target module
console:dev:    5 | import { DetailsPanel } from "./DetailsPanel.js";
console:dev:    6 | import { createMemo, createSignal, onCleanup, onMount } from "solid-js";
console:dev: >  7 | import { className, createComponent, delegateEvents, effect, insert, setStyleProperty, template } from "solid-js/web";
console:dev:      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
console:dev:    8 | import { Header, HeaderLogo, MainPanel } from "@tanstack/devtools-ui";
console:dev:    9 |
console:dev:   10 | //#region src/components/Shell.tsx
console:dev:
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://github.com/tanstack/pacer/tree/main/examples/

Screenshots or Videos (Optional)
Image
Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct
  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
主要语言
TypeScript
星标
793
派生
68
平均合并
12 小时 38 分钟
30 天内合并 PR
19

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TanStack/pacer 的其他 Issue

查看 TanStack/pacer 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。