lazarv / react-server

The easiest way to build React apps with server-side rendering
https://react-server.dev
MIT License
121 stars 6 forks source link

MUI 6.x / React__namespace.createContext is not a function #22

Closed aheissenberger closed 2 months ago

aheissenberger commented 2 months ago

Describe the bug

I want to use MUI 6.x which supports react server components with Next.js.

Error:

$ pnpm exec react-server
react-server/0.0.0-experimental-ad417f4-20240831-5a91fe57 starting development server
10:26:56 [react-server] Initializing router configuration
10:26:56 [react-server] Router configuration successful
10:26:56 [react-server] Adding source file (root).layout.jsx to router
10:26:56 [react-server] Adding source file index.tsx to router
10:26:56 [react-server] Router configuration ready
10:26:56 [react-server] Server listening on
10:26:56 [react-server]   ➜  Local:   http://localhost:3000
10:26:56 [react-server]   ➜  Network: use --host to expose
10:26:56 [react-server] ✔ Ready in 269ms
10:26:57 [react-server] React__namespace.createContext is not a function
10:26:57 [react-server] [stack]: Error: React__namespace.createContext is not a function
10:26:57 [react-server]     at Object.<anonymous> (file:///rs-mui/node_modules/.pnpm/@emotion+react@11.13.3_@types+react@18.3.5_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js:43:35)
10:26:57 [react-server]     at Module._compile (node:internal/modules/cjs/loader:1546:14)
10:26:57 [react-server]     at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
10:26:57 [react-server]     at Module.load (node:internal/modules/cjs/loader:1317:32)
10:26:57 [react-server]     at Module._load (node:internal/modules/cjs/loader:1127:12)
10:26:57 [react-server]     at TracingChannel.traceSync (node:diagnostics_channel:315:14)
10:26:57 [react-server]     at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
10:26:57 [react-server]     at Module.require (node:internal/modules/cjs/loader:1339:12)
10:26:57 [react-server]     at require (node:internal/modules/helpers:126:16)
10:26:57 [react-server]     at Object.<anonymous> (file:///rs-mui/node_modules/.pnpm/@emotion+react@11.13.3_@types+react@18.3.5_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/@emotion/react/dist/emotion-react.cjs.js:5:22)
10:26:57 [react-server] [message]: React__namespace.createContext is not a function
10:28:10 [react-server] (rsc) page reload src/pages/(root).layout.jsx
10:28:10 [react-server] React__namespace.createContext is not a function
10:28:10 [react-server] [stack]: Error: React__namespace.createContext is not a function
10:28:10 [react-server]     at Object.<anonymous> (file:///rs-mui/node_modules/.pnpm/@emotion+react@11.13.3_@types+react@18.3.5_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js:43:35)
10:28:10 [react-server]     at Module._compile (node:internal/modules/cjs/loader:1546:14)
10:28:10 [react-server]     at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
10:28:10 [react-server]     at Module.load (node:internal/modules/cjs/loader:1317:32)
10:28:10 [react-server]     at Module._load (node:internal/modules/cjs/loader:1127:12)
10:28:10 [react-server]     at TracingChannel.traceSync (node:diagnostics_channel:315:14)
10:28:10 [react-server]     at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
10:28:10 [react-server]     at Module.require (node:internal/modules/cjs/loader:1339:12)
10:28:10 [react-server]     at require (node:internal/modules/helpers:126:16)
10:28:10 [react-server]     at Object.<anonymous> (file:///rs-mui/node_modules/.pnpm/@emotion+react@11.13.3_@types+react@18.3.5_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/@emotion/react/dist/emotion-react.cjs.js:5:22)
10:30:25 [react-server] (rsc) page reload src/pages/(root).layout.jsx (x2) function
10:30:25 [react-server] React__namespace.createContext is not a function
10:30:25 [react-server] [stack]: Error: React__namespace.createContext is not a function
10:30:25 [react-server]     at Object.<anonymous> (file:///rs-mui/node_modules/.pnpm/@emotion+react@11.13.3_@types+react@18.3.5_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js:43:35)
10:30:25 [react-server]     at Module._compile (node:internal/modules/cjs/loader:1546:14)
10:30:25 [react-server]     at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
10:30:25 [react-server]     at Module.load (node:internal/modules/cjs/loader:1317:32)
10:30:25 [react-server]     at Module._load (node:internal/modules/cjs/loader:1127:12)
10:30:25 [react-server]     at TracingChannel.traceSync (node:diagnostics_channel:315:14)
10:30:25 [react-server]     at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
10:30:25 [react-server]     at Module.require (node:internal/modules/cjs/loader:1339:12)
10:30:25 [react-server]     at require (node:internal/modules/helpers:126:16)
10:30:25 [react-server]     at Object.<anonymous> (file:///rs-mui/node_modules/.pnpm/@emotion+react@11.13.3_@types+react@18.3.5_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/@emotion/react/dist/emotion-react.cjs.js:5:22)
10:30:25 [react-server] [message]: React__namespace.createContext is not a function

Reproduction

https://github.com/aheissenberger/issue-react-server-mui-6

Steps to reproduce

Run pnpm install && pnpm exec react-server

System Info

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 540.67 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.7.0 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.8.2 - /opt/homebrew/bin/npm
    pnpm: 9.9.0 - /opt/homebrew/bin/pnpm
    bun: 1.1.26 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 128.0.6613.86
    Safari: 17.6
  npmPackages:
    @lazarv/react-server: 0.0.0-experimental-ad417f4-20240831-5a91fe57 => 0.0.0-experimental-ad417f4-20240831-5a91fe57 
    @lazarv/react-server-router: 0.0.0-experimental-8a911c7-20240831-2211891a => 0.0.0-experimental-8a911c7-20240831-2211891a

Used Package Manager

pnpm

Logs

Click to expand! ```shell react-server/0.0.0-experimental-ad417f4-20240831-5a91fe57 starting development server 10:46:07 [react-server] Initializing router configuration 10:46:07 [react-server] Router configuration successful vite:config using resolved config: { vite:config root: '/rs-mui', vite:config public: 'public', vite:config server: { vite:config preTransformRequests: true, vite:config middlewareMode: true, vite:config cors: false, vite:config hmr: { port: 24678 }, vite:config https: false, vite:config fs: { vite:config strict: true, vite:config allow: [Array], vite:config deny: [Array], vite:config cachedChecks: undefined vite:config }, vite:config sourcemapIgnoreList: [Function: isInNodeModules$1] vite:config }, vite:config publicDir: '/rs-mui/public', vite:config appType: 'custom', vite:config clearScreen: false, vite:config configFile: undefined, vite:config optimizeDeps: { vite:config holdUntilCrawlEnd: true, vite:config include: [ vite:config 'react-dom', vite:config 'react-dom/client', vite:config 'react-server-dom-webpack/client.browser', vite:config 'react', vite:config 'react/jsx-dev-runtime', vite:config 'react/jsx-runtime' vite:config ], vite:config exclude: [], vite:config needsInterop: [], vite:config extensions: [], vite:config noDiscovery: false, vite:config esbuildOptions: { preserveSymlinks: false, jsx: 'automatic' }, vite:config disabled: undefined, vite:config entries: undefined, vite:config force: false vite:config }, vite:config css: { vite:config postcss: '/rs-mui', vite:config lightningcss: undefined vite:config }, vite:config plugins: [ vite:config 'vite:optimized-deps', vite:config 'vite:watch-package-data', vite:config 'vite:pre-alias', vite:config 'alias', vite:config 'vite:react-babel', vite:config 'vite:react-refresh', vite:config 'vite:modulepreload-polyfill', vite:config 'vite:resolve', vite:config 'vite:html-inline-proxy', vite:config 'vite:css', vite:config 'vite:esbuild', vite:config 'vite:json', vite:config 'vite:wasm-helper', vite:config 'vite:worker', vite:config 'vite:asset', vite:config '@lazarv/react-server-router', vite:config 'react-server:eval', vite:config 'react-server:runtime', vite:config 'react-server:use-client', vite:config 'react-server:use-server', vite:config 'react-server:use-server-inline', vite:config 'react-server:asset', vite:config 'vite:wasm-fallback', vite:config 'vite:define', vite:config 'vite:css-post', vite:config 'vite:worker-import-meta-url', vite:config 'vite:asset-import-meta-url', vite:config 'vite:dynamic-import-vars', vite:config 'vite:import-glob', vite:config 'vite:client-inject', vite:config 'vite:css-analysis', vite:config 'vite:import-analysis' vite:config ], vite:config cacheDir: '/rs-mui/.react-server/.cache/client', vite:config resolve: { vite:config mainFields: [ 'browser', 'module', 'jsnext:main', 'jsnext' ], vite:config conditions: [], vite:config externalConditions: [], vite:config external: [], vite:config noExternal: [], vite:config extensions: [ vite:config '.mjs', '.js', vite:config '.mts', '.ts', vite:config '.jsx', '.tsx', vite:config '.json' vite:config ], vite:config dedupe: [ 'react', 'react-dom' ], vite:config preserveSymlinks: true, vite:config alias: [ [Object], [Object], [Object], [Object] ] vite:config }, vite:config customLogger: { vite:config hasWarned: false, vite:config info: [Function (anonymous)], vite:config warn: [Function (anonymous)], vite:config warnOnce: [Function (anonymous)], vite:config error: [Function: error], vite:config clearScreen: [Function: clearScreen], vite:config hasErrorLogged: [Function: hasErrorLogged] vite:config }, vite:config environments: { vite:config client: { vite:config resolve: [Object], vite:config nodeCompatible: false, vite:config webCompatible: true, vite:config injectInvalidationTimestamp: true, vite:config dev: [Object], vite:config build: [Object] vite:config }, vite:config ssr: { vite:config resolve: [Object], vite:config nodeCompatible: true, vite:config webCompatible: false, vite:config injectInvalidationTimestamp: false, vite:config dev: [Object], vite:config build: [Object] vite:config }, vite:config rsc: { vite:config resolve: [Object], vite:config nodeCompatible: true, vite:config webCompatible: false, vite:config injectInvalidationTimestamp: false, vite:config dev: [Object], vite:config build: [Object] vite:config } vite:config }, vite:config esbuild: { jsxDev: true, jsx: 'automatic', jsxImportSource: undefined }, vite:config build: { vite:config target: [ 'es2020', 'edge88', 'firefox78', 'chrome87', 'safari14' ], vite:config cssTarget: [ 'es2020', 'edge88', 'firefox78', 'chrome87', 'safari14' ], vite:config outDir: 'dist', vite:config assetsDir: 'assets', vite:config assetsInlineLimit: 4096, vite:config cssCodeSplit: true, vite:config sourcemap: false, vite:config rollupOptions: { onwarn: [Function: onwarn] }, vite:config minify: 'esbuild', vite:config terserOptions: {}, vite:config write: true, vite:config emptyOutDir: null, vite:config copyPublicDir: true, vite:config manifest: false, vite:config ssr: false, vite:config ssrManifest: false, vite:config ssrEmitAssets: false, vite:config emitAssets: false, vite:config reportCompressedSize: true, vite:config chunkSizeWarningLimit: 500, vite:config watch: null, vite:config commonjsOptions: { include: [Array], extensions: [Array] }, vite:config dynamicImportVarsOptions: { warnOnError: true, exclude: [Array] }, vite:config modulePreload: { polyfill: true }, vite:config cssMinify: true, vite:config lib: false vite:config }, vite:config configFileDependencies: [], vite:config inlineConfig: { vite:config root: '/rs-mui', vite:config public: 'public', vite:config server: { vite:config middlewareMode: true, vite:config cors: false, vite:config hmr: [Object], vite:config https: false, vite:config fs: [Object] vite:config }, vite:config publicDir: '/rs-mui/public', vite:config appType: 'custom', vite:config clearScreen: false, vite:config configFile: false, vite:config optimizeDeps: { force: undefined, include: [Array] }, vite:config css: { vite:config postcss: '/rs-mui' vite:config }, vite:config plugins: [ vite:config [Promise], [Object], vite:config [Object], [Array], vite:config [Object], [Object], vite:config [Object], [Object] vite:config ], vite:config cacheDir: '/rs-mui/.react-server/.cache/client', vite:config resolve: { preserveSymlinks: true, alias: [Array] }, vite:config customLogger: { vite:config hasWarned: false, vite:config info: [Function (anonymous)], vite:config warn: [Function (anonymous)], vite:config warnOnce: [Function (anonymous)], vite:config error: [Function: error], vite:config clearScreen: [Function: clearScreen], vite:config hasErrorLogged: [Function: hasErrorLogged] vite:config }, vite:config environments: { client: [Object], ssr: [Object], rsc: [Object] } vite:config }, vite:config base: '/', vite:config rawBase: '/', vite:config command: 'serve', vite:config mode: 'development', vite:config isWorker: false, vite:config mainConfig: null, vite:config bundleChain: [], vite:config isProduction: false, vite:config builder: { vite:config sharedConfigBuild: false, vite:config sharedPlugins: false, vite:config entireApp: false, vite:config buildApp: [AsyncFunction: defaultBuildApp] vite:config }, vite:config preview: { vite:config port: undefined, vite:config strictPort: undefined, vite:config host: undefined, vite:config https: false, vite:config open: undefined, vite:config proxy: undefined, vite:config cors: false, vite:config headers: undefined vite:config }, vite:config envDir: '/rs-mui', vite:config env: { BASE_URL: '/', MODE: 'development', DEV: true, PROD: false }, vite:config assetsInclude: [Function: assetsInclude], vite:config logger: { vite:config hasWarned: false, vite:config info: [Function (anonymous)], vite:config warn: [Function (anonymous)], vite:config warnOnce: [Function (anonymous)], vite:config error: [Function: error], vite:config clearScreen: [Function: clearScreen], vite:config hasErrorLogged: [Function: hasErrorLogged] vite:config }, vite:config packageCache: Map(1) { vite:config 'fnpd_/rs-mui' => { vite:config dir: '/rs-mui', vite:config data: [Object], vite:config hasSideEffects: [Function: hasSideEffects], vite:config webResolvedImports: {}, vite:config nodeResolvedImports: {}, vite:config setResolvedCache: [Function: setResolvedCache], vite:config getResolvedCache: [Function: getResolvedCache] vite:config }, vite:config set: [Function (anonymous)] vite:config }, vite:config worker: { format: 'iife', plugins: '() => plugins', rollupOptions: {} }, vite:config experimental: { importGlobRestoreExtension: false, hmrPartialAccept: false }, vite:config future: undefined, vite:config ssr: { vite:config target: 'node', vite:config external: [ vite:config 'react', vite:config 'react/jsx-runtime', vite:config 'react/jsx-dev-runtime', vite:config 'react-dom', vite:config 'react-dom/client', vite:config 'react-server-dom-webpack' vite:config ], vite:config noExternal: [], vite:config optimizeDeps: { vite:config include: [], vite:config exclude: [], vite:config needsInterop: [], vite:config extensions: [], vite:config noDiscovery: true, vite:config holdUntilCrawlEnd: true, vite:config esbuildOptions: [Object], vite:config disabled: undefined, vite:config entries: undefined, vite:config force: false vite:config }, vite:config resolve: { conditions: [Array], externalConditions: [Array] } vite:config }, vite:config dev: { vite:config sourcemap: { js: true }, vite:config sourcemapIgnoreList: [Function: isInNodeModules$1], vite:config preTransformRequests: false, vite:config warmup: [], vite:config optimizeDeps: { vite:config include: [], vite:config exclude: [], vite:config needsInterop: [], vite:config extensions: [], vite:config noDiscovery: true, vite:config holdUntilCrawlEnd: true, vite:config esbuildOptions: [Object], vite:config disabled: undefined, vite:config entries: undefined, vite:config force: false vite:config }, vite:config createEnvironment: undefined, vite:config recoverable: false, vite:config moduleRunnerTransform: true vite:config }, vite:config getSortedPlugins: [Function: getSortedPlugins], vite:config getSortedPluginHooks: [Function: getSortedPluginHooks], vite:config createResolver: [Function: createResolver] vite:config } +0ms connect:dispatcher use / viteTimeMiddleware +0ms connect:dispatcher use / viteCachedTransformMiddleware +0ms connect:dispatcher use /__open-in-editor launchEditorMiddleware +0ms connect:dispatcher use / viteHMRPingMiddleware +0ms connect:dispatcher use / viteServePublicMiddleware +1ms connect:dispatcher use / viteTransformMiddleware +0ms connect:dispatcher use / viteServeRawFsMiddleware +0ms connect:dispatcher use / viteServeStaticMiddleware +0ms connect:dispatcher use / viteErrorMiddleware +0ms 10:46:07 [react-server] Adding source file (root).layout.jsx to router 10:46:07 [react-server] Adding source file index.tsx to router 10:46:07 [react-server] Router configuration ready vite:deps removing old cache dir /rs-mui/.react-server/.cache/client/deps +0ms vite:resolve 0.67ms react-dom -> /rs-mui/node_modules/.pnpm/react-dom@0.0.0-experimental-58af67a8f8-20240628_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/react-dom/index.js +0ms vite:resolve 0.28ms react-dom/client -> /rs-mui/node_modules/.pnpm/react-dom@0.0.0-experimental-58af67a8f8-20240628_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/react-dom/client.js +0ms vite:resolve 0.11ms react-server-dom-webpack/client.browser -> /rs-mui/node_modules/.pnpm/react-server-dom-webpack@0.0.0-experimental-58af67a8f8-20240628_react-dom@0.0.0-experimental-_wxsgdtszfpife56u4s4s5xyfvu/node_modules/react-server-dom-webpack/client.browser.js +1ms vite:resolve 0.15ms react -> /rs-mui/node_modules/.pnpm/react@0.0.0-experimental-58af67a8f8-20240628/node_modules/react/index.js +0ms vite:resolve 0.07ms react/jsx-dev-runtime -> /rs-mui/node_modules/.pnpm/react@0.0.0-experimental-58af67a8f8-20240628/node_modules/react/jsx-dev-runtime.js +0ms vite:resolve 0.04ms react/jsx-runtime -> /rs-mui/node_modules/.pnpm/react@0.0.0-experimental-58af67a8f8-20240628/node_modules/react/jsx-runtime.js +0ms vite:deps scanning for dependencies... +0ms connect:dispatcher use / anonymous +22ms 10:46:07 [react-server] Server listening on 10:46:07 [react-server] ➜ Local: http://localhost:3000 10:46:07 [react-server] ➜ Network: use --host to expose 10:46:07 [react-server] ✔ Ready in 245ms vite:deps Scan completed in 12.04ms: no dependencies found +0ms vite:deps creating package.json in /rs-mui/.react-server/.cache/client/deps_temp_2a5c5eeb +18ms vite:resolve 0.13ms react -> /rs-mui/node_modules/.pnpm/react@0.0.0-experimental-58af67a8f8-20240628/node_modules/react/index.js +28ms vite:resolve 0.10ms react-dom -> /rs-mui/node_modules/.pnpm/react-dom@0.0.0-experimental-58af67a8f8-20240628_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/react-dom/index.js +3ms vite:resolve 0.98ms scheduler -> /rs-mui/node_modules/.pnpm/scheduler@0.0.0-experimental-58af67a8f8-20240628/node_modules/scheduler/index.js +19ms vite:deps Dependencies bundled in 65.44ms +66ms vite:hmr [file change] .react-server/react-server-router.d.ts +0ms vite:hmr (client) [no modules matched] .react-server/react-server-router.d.ts +1ms vite:hmr (ssr) [no modules matched] .react-server/react-server-router.d.ts +0ms vite:hmr (rsc) [no modules matched] .react-server/react-server-router.d.ts +0ms connect:dispatcher viteTimeMiddleware : / +12s connect:dispatcher viteCachedTransformMiddleware : / +0ms connect:dispatcher viteHMRPingMiddleware : / +0ms connect:dispatcher viteServePublicMiddleware : / +0ms connect:dispatcher viteTransformMiddleware : / +0ms connect:dispatcher viteServeRawFsMiddleware : / +1ms connect:dispatcher viteServeStaticMiddleware : / +0ms connect:dispatcher viteErrorMiddleware : / +0ms connect:dispatcher : / +0ms vite:resolve 2.15ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/render-rsc.jsx -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/render-rsc.jsx +12s vite:resolve 2.11ms @lazarv/react-server-router -> /rs-mui/node_modules/@lazarv/react-server-router/index.jsx +0ms vite:load 2.24ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/render-rsc.jsx +0ms vite:load 3.38ms [fs] @lazarv/react-server-router +1ms vite:import-analysis 2.82ms [0 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/render-rsc.jsx +0ms vite:transform 8.50ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/render-rsc.jsx +0ms vite:resolve 0.51ms @lazarv/react-server/router -> /rs-mui/node_modules/@lazarv/react-server/server/router.jsx +14ms vite:resolve 0.68ms /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/index.mjs +0ms vite:resolve 1.12ms @lazarv/react-server-router/manifest -> virtual:@lazarv/react-server-router/manifest +0ms vite:resolve 1.34ms @lazarv/react-server -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/index.mjs +0ms vite:resolve 0.14ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/index.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/index.mjs +1ms vite:resolve 0.11ms /node_modules/@lazarv/react-server/server/router.jsx -> /rs-mui/node_modules/@lazarv/react-server/server/router.jsx +0ms vite:resolve 0.25ms virtual:@lazarv/react-server-router/manifest -> null +0ms vite:import-analysis 1.91ms [3 imports rewritten] node_modules/@lazarv/react-server-router/index.jsx +3ms vite:transform 10.34ms @lazarv/react-server-router +3ms vite:load 1.01ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/index.mjs +43ms vite:resolve 0.39ms ./cache.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cache.mjs +32ms vite:resolve 0.42ms ./cookies.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cookies.mjs +0ms vite:resolve 0.44ms ./http-headers.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-headers.mjs +0ms vite:resolve 0.45ms ./http-status.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-status.mjs +0ms vite:resolve 0.46ms ./redirects.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/redirects.mjs +0ms vite:resolve 0.54ms ./request.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/request.mjs +0ms vite:resolve 0.56ms ./revalidate.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/revalidate.mjs +0ms vite:resolve 0.71ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cache.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cache.mjs +2ms vite:resolve 0.73ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cookies.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cookies.mjs +0ms vite:resolve 0.79ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-headers.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-headers.mjs +0ms vite:resolve 0.82ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-status.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-status.mjs +0ms vite:resolve 0.83ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/redirects.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/redirects.mjs +0ms vite:resolve 0.85ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/request.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/request.mjs +0ms vite:resolve 0.86ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/revalidate.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/revalidate.mjs +0ms vite:import-analysis 2.26ms [7 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/index.mjs +34ms vite:transform 2.44ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/index.mjs +34ms vite:load 0.48ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cache.mjs +3ms vite:resolve 0.09ms ./symbols.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/symbols.mjs +2ms vite:resolve 0.04ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/symbols.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/symbols.mjs +0ms vite:import-analysis 0.33ms [2 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cache.mjs +2ms vite:transform 0.48ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cache.mjs +2ms vite:load 0.27ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/request.mjs +3ms vite:import-analysis 0.06ms [0 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/request.mjs +3ms vite:transform 0.18ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/request.mjs +3ms vite:load 0.82ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/symbols.mjs +4ms vite:import-analysis 0.04ms [no imports] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/symbols.mjs +4ms vite:transform 0.35ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/symbols.mjs +4ms vite:load 0.55ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cookies.mjs +3ms vite:import-analysis 0.20ms [0 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cookies.mjs +2ms vite:transform 0.35ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/cookies.mjs +2ms vite:load 5.65ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-headers.mjs +7ms vite:resolve 0.15ms ./context.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/context.mjs +16ms vite:resolve 0.10ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/context.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/context.mjs +0ms vite:import-analysis 0.50ms [3 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-headers.mjs +7ms vite:transform 0.78ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-headers.mjs +7ms vite:load 0.59ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/context.mjs +2ms vite:resolve 0.05ms ../lib/async-local-storage.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/lib/async-local-storage.mjs +2ms vite:resolve 0.04ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/lib/async-local-storage.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/lib/async-local-storage.mjs +0ms vite:import-analysis 0.25ms [1 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/context.mjs +2ms vite:transform 0.93ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/context.mjs +3ms vite:load 0.22ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/lib/async-local-storage.mjs +2ms vite:import-analysis 0.54ms [0 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/lib/async-local-storage.mjs +2ms vite:transform 0.77ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/lib/async-local-storage.mjs +2ms vite:load 0.21ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-status.mjs +3ms vite:import-analysis 0.20ms [2 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-status.mjs +4ms vite:transform 0.30ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/http-status.mjs +3ms vite:load 0.13ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/redirects.mjs +1ms vite:import-analysis 0.06ms [0 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/redirects.mjs +0ms vite:transform 0.20ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/redirects.mjs +0ms vite:load 0.11ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/revalidate.mjs +1ms vite:import-analysis 0.25ms [2 imports rewritten] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/revalidate.mjs +1ms vite:transform 0.36ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/revalidate.mjs +2ms vite:load 0.08ms [plugin] virtual:@lazarv/react-server-router/manifest +1ms vite:resolve 0.35ms __react_server_router_page__/::/rs-mui/src/pages/index.tsx::.jsx -> virtual:__react_server_router_page__/::/rs-mui/src/pages/index.tsx::.jsx +9ms vite:resolve 0.05ms /src/pages/index.tsx -> /rs-mui/src/pages/index.tsx +0ms vite:resolve 0.06ms /src/pages/(root).layout.jsx -> /rs-mui/src/pages/(root).layout.jsx +0ms vite:resolve 0.10ms virtual:__react_server_router_page__/::/rs-mui/src/pages/index.tsx::.jsx -> null +0ms vite:import-analysis 0.67ms [3 imports rewritten] virtual:@lazarv/react-server-router/manifest +2ms vite:transform 0.85ms virtual:@lazarv/react-server-router/manifest +1ms vite:load 0.49ms [fs] /node_modules/@lazarv/react-server/server/router.jsx +2ms vite:resolve 0.11ms ./action-state.mjs -> /rs-mui/node_modules/@lazarv/react-server/server/action-state.mjs +3ms vite:resolve 0.14ms ./RemoteComponent.jsx -> /rs-mui/node_modules/@lazarv/react-server/server/RemoteComponent.jsx +0ms vite:resolve 0.15ms ./Route.jsx -> /rs-mui/node_modules/@lazarv/react-server/server/Route.jsx +0ms vite:resolve 0.07ms /node_modules/@lazarv/react-server/server/action-state.mjs -> /rs-mui/node_modules/@lazarv/react-server/server/action-state.mjs +0ms vite:resolve 0.08ms /node_modules/@lazarv/react-server/server/RemoteComponent.jsx -> /rs-mui/node_modules/@lazarv/react-server/server/RemoteComponent.jsx +0ms vite:resolve 0.09ms /node_modules/@lazarv/react-server/server/Route.jsx -> /rs-mui/node_modules/@lazarv/react-server/server/Route.jsx +0ms vite:import-analysis 0.41ms [3 imports rewritten] node_modules/@lazarv/react-server/server/router.jsx +3ms vite:transform 1.26ms /node_modules/@lazarv/react-server/server/router.jsx +3ms vite:load 0.38ms [fs] /node_modules/@lazarv/react-server/server/action-state.mjs +3ms vite:resolve 0.16ms ./context.mjs -> /rs-mui/node_modules/@lazarv/react-server/server/context.mjs +1ms vite:resolve 0.20ms ./symbols.mjs -> /rs-mui/node_modules/@lazarv/react-server/server/symbols.mjs +0ms vite:resolve 0.08ms /node_modules/@lazarv/react-server/server/context.mjs -> /rs-mui/node_modules/@lazarv/react-server/server/context.mjs +0ms vite:resolve 0.09ms /node_modules/@lazarv/react-server/server/symbols.mjs -> /rs-mui/node_modules/@lazarv/react-server/server/symbols.mjs +0ms vite:import-analysis 0.44ms [2 imports rewritten] node_modules/@lazarv/react-server/server/action-state.mjs +1ms vite:transform 0.52ms /node_modules/@lazarv/react-server/server/action-state.mjs +1ms vite:load 0.24ms [fs] /node_modules/@lazarv/react-server/server/context.mjs +1ms vite:resolve 0.04ms ../lib/async-local-storage.mjs -> /rs-mui/node_modules/@lazarv/react-server/lib/async-local-storage.mjs +1ms vite:resolve 0.03ms /node_modules/@lazarv/react-server/lib/async-local-storage.mjs -> /rs-mui/node_modules/@lazarv/react-server/lib/async-local-storage.mjs +0ms vite:import-analysis 0.19ms [1 imports rewritten] node_modules/@lazarv/react-server/server/context.mjs +1ms vite:transform 0.27ms /node_modules/@lazarv/react-server/server/context.mjs +1ms vite:load 0.22ms [fs] /node_modules/@lazarv/react-server/lib/async-local-storage.mjs +1ms vite:import-analysis 0.06ms [0 imports rewritten] node_modules/@lazarv/react-server/lib/async-local-storage.mjs +1ms vite:transform 0.14ms /node_modules/@lazarv/react-server/lib/async-local-storage.mjs +2ms vite:load 0.25ms [fs] /node_modules/@lazarv/react-server/server/symbols.mjs +2ms vite:import-analysis 0.05ms [no imports] node_modules/@lazarv/react-server/server/symbols.mjs +2ms vite:transform 0.17ms /node_modules/@lazarv/react-server/server/symbols.mjs +1ms vite:load 0.40ms [fs] /node_modules/@lazarv/react-server/server/RemoteComponent.jsx +1ms vite:resolve 0.43ms @lazarv/react-server/navigation -> /rs-mui/node_modules/@lazarv/react-server/client/navigation.jsx +7ms vite:resolve 0.26ms ./request.mjs -> /rs-mui/node_modules/@lazarv/react-server/server/request.mjs +0ms vite:resolve 0.05ms /node_modules/@lazarv/react-server/client/navigation.jsx -> /rs-mui/node_modules/@lazarv/react-server/client/navigation.jsx +1ms vite:resolve 0.06ms /node_modules/@lazarv/react-server/server/request.mjs -> /rs-mui/node_modules/@lazarv/react-server/server/request.mjs +0ms vite:import-analysis 1.21ms [4 imports rewritten] node_modules/@lazarv/react-server/server/RemoteComponent.jsx +5ms vite:transform 3.18ms /node_modules/@lazarv/react-server/server/RemoteComponent.jsx +5ms vite:load 0.40ms [fs] /node_modules/@lazarv/react-server/client/navigation.jsx +7ms vite:resolve 0.07ms ./location.mjs -> /rs-mui/node_modules/@lazarv/react-server/client/location.mjs +12ms vite:resolve 0.05ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/client-register.mjs -> /rs-mui/node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/client-register.mjs +0ms vite:resolve 0.06ms /node_modules/@lazarv/react-server/client/location.mjs -> /rs-mui/node_modules/@lazarv/react-server/client/location.mjs +0ms vite:import-analysis 0.32ms [2 imports rewritten] node_modules/@lazarv/react-server/client/navigation.jsx +12ms vite:transform 9.96ms /node_modules/@lazarv/react-server/client/navigation.jsx +13ms vite:load 0.36ms [fs] /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/client-register.mjs +11ms vite:import-analysis 0.03ms [no imports] node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/client-register.mjs +2ms vite:transform 0.12ms /node_modules/.pnpm/@lazarv+react-server@0.0.0-experimental-ad417f4-20240831-5a91fe57_@types+node@22.5.2_rollup@4_dj24wgqygazfhf2vpxvq2xeuc4/node_modules/@lazarv/react-server/server/client-register.mjs +1ms vite:load 0.68ms [fs] /node_modules/@lazarv/react-server/client/location.mjs +1ms vite:import-analysis 0.19ms [1 imports rewritten] node_modules/@lazarv/react-server/client/location.mjs +4ms vite:transform 2.87ms /node_modules/@lazarv/react-server/client/location.mjs +4ms vite:load 0.16ms [fs] /node_modules/@lazarv/react-server/server/request.mjs +7ms vite:import-analysis 0.05ms [0 imports rewritten] node_modules/@lazarv/react-server/server/request.mjs +5ms vite:transform 0.14ms /node_modules/@lazarv/react-server/server/request.mjs +5ms vite:load 0.21ms [fs] /node_modules/@lazarv/react-server/server/Route.jsx +2ms vite:import-analysis 0.28ms [0 imports rewritten] node_modules/@lazarv/react-server/server/Route.jsx +3ms vite:transform 2.58ms /node_modules/@lazarv/react-server/server/Route.jsx +3ms vite:load 0.23ms [plugin] virtual:__react_server_router_page__/::/rs-mui/src/pages/index.tsx::.jsx +13ms vite:resolve 0.25ms @lazarv/react-server/prerender -> /rs-mui/node_modules/@lazarv/react-server/server/prerender.jsx +27ms vite:resolve 0.07ms /node_modules/@lazarv/react-server/server/prerender.jsx -> /rs-mui/node_modules/@lazarv/react-server/server/prerender.jsx +1ms vite:import-analysis 0.83ms [5 imports rewritten] virtual:__react_server_router_page__/::/rs-mui/src/pages/index.tsx::.jsx +14ms vite:transform 2.18ms virtual:__react_server_router_page__/::/rs-mui/src/pages/index.tsx::.jsx +14ms vite:load 0.28ms [fs] /node_modules/@lazarv/react-server/server/prerender.jsx +5ms vite:import-analysis 0.08ms [0 imports rewritten] node_modules/@lazarv/react-server/server/prerender.jsx +4ms vite:transform 1.26ms /node_modules/@lazarv/react-server/server/prerender.jsx +4ms vite:load 0.18ms [fs] /src/pages/index.tsx +7ms vite:import-analysis 0.43ms [0 imports rewritten] src/pages/index.tsx +8ms vite:transform 2.79ms /src/pages/index.tsx +8ms 10:46:19 [react-server] React__namespace.createContext is not a function 10:46:19 [react-server] [stack]: Error: React__namespace.createContext is not a function 10:46:19 [react-server] at Object. (file:///rs-mui/node_modules/.pnpm/@emotion+react@11.13.3_@types+react@18.3.5_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js:43:35) 10:46:19 [react-server] at Module._compile (node:internal/modules/cjs/loader:1546:14) 10:46:19 [react-server] at Module._extensions..js (node:internal/modules/cjs/loader:1691:10) 10:46:19 [react-server] at Module.load (node:internal/modules/cjs/loader:1317:32) 10:46:19 [react-server] at Module._load (node:internal/modules/cjs/loader:1127:12) 10:46:19 [react-server] at TracingChannel.traceSync (node:diagnostics_channel:315:14) 10:46:19 [react-server] at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) 10:46:19 [react-server] at Module.require (node:internal/modules/cjs/loader:1339:12) 10:46:19 [react-server] at require (node:internal/modules/helpers:126:16) 10:46:19 [react-server] at Object. (file:///rs-mui/node_modules/.pnpm/@emotion+react@11.13.3_@types+react@18.3.5_react@0.0.0-experimental-58af67a8f8-20240628/node_modules/@emotion/react/dist/emotion-react.cjs.js:5:22) 10:46:19 [react-server] [message]: React__namespace.createContext is not a function vite:time 217.07ms / +0ms finalhandler cannot 404 after headers sent +217ms connect:dispatcher viteTimeMiddleware : /@vite/client +23ms connect:dispatcher viteCachedTransformMiddleware : /@vite/client +0ms connect:dispatcher viteHMRPingMiddleware : /@vite/client +1ms connect:dispatcher viteServePublicMiddleware : /@vite/client +0ms connect:dispatcher viteTransformMiddleware : /@vite/client +0ms vite:resolve 0.24ms /@vite/client -> /rs-mui/node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/client.mjs +103ms vite:load 3.54ms [fs] /@vite/client +98ms vite:resolve 0.07ms @vite/env -> /rs-mui/node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +25ms vite:import-analysis 0.65ms [1 imports rewritten] node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/client.mjs +116ms vite:transform 19.55ms /@vite/client +116ms vite:time 26.18ms /@vite/client +51ms connect:dispatcher viteTimeMiddleware : /node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +32ms connect:dispatcher viteCachedTransformMiddleware : /node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +0ms connect:dispatcher viteHMRPingMiddleware : /node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +0ms connect:dispatcher viteServePublicMiddleware : /node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +0ms connect:dispatcher viteTransformMiddleware : /node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +0ms vite:load 7.39ms [fs] /node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +29ms vite:import-analysis 0.03ms [no imports] node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +11ms vite:transform 1.57ms /node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +11ms vite:time 4.51ms /node_modules/.pnpm/vite@6.0.0-alpha.18_@types+node@22.5.2_sass@1.77.8_terser@5.31.6/node_modules/vite/dist/client/env.mjs +10ms vite:deps ✨ static imports crawl ended +12s vite:deps ✨ using post-scan optimizer result, the scanner found every used dependency +0ms vite:deps creating _metadata.json in /rs-mui/.react-server/.cache/client/deps_temp_2a5c5eeb +12s vite:deps renaming /rs-mui/.react-server/.cache/client/deps_temp_2a5c5eeb to /rs-mui/.react-server/.cache/client/deps +1ms vite:deps ✨ dependencies optimized +1ms ```

Validations

lazarv commented 2 months ago

This is the same issue as in https://github.com/lazarv/react-server/issues/20

lazarv commented 2 months ago

Material UI 6 should work now using the latest version (0.0.0-experimental-da250e2-20240909-6dc86ec1).

@aheissenberger the only inconvenience is that you need to install more MUI related packages than usual. You can check out the MUI example at https://github.com/lazarv/react-server/tree/main/examples/mui. These are the dependencies used in that example to make it work.

"dependencies": {
  "@emotion/react": "^11.13.3",
  "@emotion/styled": "^11.13.0",
  "@fontsource/roboto": "^5.0.14",
  "@lazarv/react-server": "workspace:^",
  "@lazarv/react-server-router": "workspace:^",
  "@mui/icons-material": "^6.0.2",
  "@mui/material": "^6.0.2",
  "@mui/styled-engine": "^6.0.2",
  "@mui/system": "^6.0.2",
  "@mui/utils": "^6.0.2"
}

Also when using @mui/icons-material you need to directly use the ESM version of the icons, like at https://github.com/lazarv/react-server/blob/main/examples/mui/app/components/ProTip.jsx#L1

import LightbulbOutlined from "@mui/icons-material/esm/LightbulbOutlined";

This is needed because in development mode Vite is not tree-shaking and so it would import every single icon in the package, which is just painful during development. When building for production this is not an issue as Rollup is properly tree-shaking as expected. Rolldown might help with this in the future, but it's uncertain at this point.

Your repro repository might be private or the name is incorrect as I get a 404 on the link you provided. If you would open up the repo I could check it against the latest version if needed.

aheissenberger commented 2 months ago

you are right - I accidentally made it private.

lazarv commented 2 months ago

@aheissenberger this still doesn't work as expected in development mode, I'll investigate the issue using your repo, thanks for sharing it.

lazarv commented 2 months ago

As mentioned in #20 please try upgrading to the latest version of the framework and give it another go.

lazarv commented 2 months ago

The same goes for Material UI as for Mantine, this works now as expected. @aheissenberger if there's any specific issue around using Material UI, open a new issue to address it directly, thanks!

github-actions[bot] commented 1 month ago

This issue has been locked since it has been closed for more than 30 days.

If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest version of @lazarv/react-server. If you have any other comments you should create a new discussion.