Comments (5)
in my case, it was fixed so THANKS @ahabhgk !
But yes @f312213213 , looks like rspack somehow is failing when a library re-exports all modules from an internal dependency π€
@ahabhgk do you know if it's a bug in rspack itself? or maybe the libraries (like react query) are not following the standard? π€
from rspack.
Hi, thanks for quick responding, but I think the same error still exist, this time I'm using the @tanstack/react-query
lib and the case is:
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
will have the following error message:
Γ HarmonyLinkingError: export 'QueryClient' (imported as 'QueryClient') was not found in '@tanstack/react-query' (possible exports: Hydrate, IsRestoringProvider, QueryClientProvider, QueryErrorResetBoundary, __esModule, defaultContext, useHydrate, useInfiniteQuery, useIsFetching, useIsMutating, useIsRestoring, useMutation, useQueries, useQuery, useQueryClient, useQueryErrorResetBoundary)
but QueryClient
is re-export from @tanstack/query-core
actually
import './setBatchUpdatesFn';
export * from '@tanstack/query-core'; // re-export from this line
export * from './types';
I'm using "@rsbuild/core": "1.0.0-alpha.4" which depends on the latest rspack, version: "1.0.0-alpha.1".
from rspack.
Additional information: When I use "@rsbuild/core": "0.5.9", everything works fine.
from rspack.
@f312213213 I can't reproduce in my local, could you provide a minimal reproduce?
from rspack.
Hi @ahabhgk ,The following link is my minimal reproduce.
https://codesandbox.io/p/devbox/rsbuild-rive-app-bug-forked-mnlp5y
from rspack.
Related Issues (20)
- [Bug]: production build with mjs empty module results in error
- [Bug]: Removing CSS File while runnning `npm run dev` results in compile error HOT 1
- [Feature]: Module.addBlock API HOT 1
- [Tracking]: enable biome lint and format rules HOT 1
- [Bug]: `html-rspack-plugin` child compilation fail when used with `case-sensitive-paths-webpack-plugin` HOT 2
- [Bug]: Panic occurred at runtime HOT 3
- [Bug]: webpackMissingModule with relative import HOT 3
- [Bug]: δΉζ΄ζ°εζ₯ι HOT 1
- [Bug]: Some `output.copy` glob patterns fail
- [Bug]: should have dependency id HOT 21
- [Bug]: plugin compiles fine in webpack, but does not work in rspack HOT 2
- [Feature]: Add chunks raised for imports in third-party npm packages, which need to be captured in ouput.chunkFilename HOT 2
- [Tracking]: JS -> TS refactor the remaining .js file to .ts and esm HOT 1
- [Bug]: HMR update not found
- [Bug]: Panic occured at runtime. HOT 1
- [Bug Report]: css-loader errors occurred while using tailwindcss. HOT 2
- JavaScript parsing error: Expression expected HOT 2
- [Bug]: `webpack-test/statsCases/runtime-specific-used-exports` randomly panics
- [Bug]: module federation plugin makes dev/build/HMR a lot slower
- [Bug]: Bad output with two `||` in an expression
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspack.