farm icon indicating copy to clipboard operation
farm copied to clipboard

Install `@tanstack/react-query` and build error

Open callqh opened this issue 9 months ago • 1 comments

Steps to reproduce

Reproduction repository

run pnpm build

What is expected?

build success

What is actually happening?

thread '<unnamed>' panicked at crates/plugin_runtime/src/render_resource_pot/source_replacer.rs:138:11:
Cannot find module id for source "./useBaseQuery.js" from ModuleId { relative_path: "node_modules/.pnpm/@[email protected][email protected]/node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js", query_string: "" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

System Info

  System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 193.11 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.1 - ~/.nvm/versions/node/v16.20.1/bin/node
    Yarn: 1.22.22 - ~/Library/pnpm/yarn
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.1/bin/npm
    pnpm: 8.15.5 - ~/Library/pnpm/pnpm
    bun: 0.6.13 - ~/.bun/bin/bun
  Browsers:
    Chrome: 122.0.6261.112
    Edge: 124.0.2478.51
    Safari: 17.4.1
  npmPackages:
    @farmfe/core: ^1.1.2 => 1.1.2 

Any additional comments?

No response

callqh avatar Apr 30 '24 10:04 callqh

Just want to add, not isolated to react-query, happens with some other dependencies too (in my case Braze).

ante-kalajzic-deel avatar May 15 '24 15:05 ante-kalajzic-deel

It will be fixed in #1284

wre232114 avatar May 16 '24 00:05 wre232114