{"id":18322,"library":"exact","title":"exact","description":"exact is a universal React framework for building web applications with support for both server-side rendering (SSR) and static site generation (SSG). The current stable version is 1.0.1 (August 2024), with monthly releases. It differentiates itself from Next.js by offering a minimal, framework-agnostic approach with zero configuration, automatic code splitting, and built-in TypeScript support. The package was originally a different utility (v0.x) but was renamed for the React framework. It is designed for modern React development with ESM and CommonJS support.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install exact","lang":"bash","label":"npm"},{"cmd":"yarn add exact","lang":"bash","label":"yarn"},{"cmd":"pnpm add exact","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for rendering React components.","package":"react","optional":false},{"reason":"Peer dependency required for rendering React components in the browser.","package":"react-dom","optional":false}],"imports":[{"note":"Default import is the main entry point. CommonJS require works but ESM is preferred since v1.0.","wrong":"const exact = require('exact')","symbol":"default","correct":"import exact from 'exact'"},{"note":"Named export for server-side rendering. Not a default export.","wrong":"import render from 'exact'","symbol":"render","correct":"import { render } from 'exact'"},{"note":"Used for static site generation. TypeScript types are included.","wrong":"","symbol":"StaticRouter","correct":"import { StaticRouter } from 'exact'"}],"quickstart":{"code":"import exact from 'exact';\nimport React from 'react';\n\nconst App = () => <h1>Hello, Exact!</h1>;\n\nconst server = exact.createServer({ port: 3000 });\nserver.renderToString(<App />).then(html => {\n  console.log(html);\n});","lang":"typescript","description":"Creates a basic server that renders a React component to string using exact.createServer."},"warnings":[{"fix":"Update to v1.0 and rewrite code using the new React framework APIs.","message":"The package was renamed from v0.x (a different utility) to v1.0 (React framework). All APIs changed.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Use import instead of require.","message":"CommonJS require() may be deprecated in future versions. Use ESM imports.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use dynamic import() for route-based code splitting.","message":"Automatic code splitting requires dynamic import() syntax. Static imports will bundle all code.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Upgrade Node.js to version 14+ or use static export.","message":"Server-side rendering requires Node.js 14 or higher.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install exact@1.0.1' and ensure import path is correct.","cause":"Package not installed or version <1.0.0 (old package).","error":"Module not found: Can't resolve 'exact'"},{"fix":"Use named import: import { createServer } from 'exact'.","cause":"Using default import but the function is not exported as default.","error":"TypeError: exact.createServer is not a function"},{"fix":"Add 'type': 'module' in package.json or use .mjs extension.","cause":"Running ESM code in a CommonJS module.","error":"SyntaxError: Cannot use import statement outside a module"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}