Registry / web-framework / galaxy-framework

galaxy-framework

JSON →
library4.0.32jsnpmunverified

A utility framework with Rollup bundling and TypeScript support. Current stable version: 4.0.32. Frequent releases. Note: No README data available. Includes peer dependency on antd ^3.26.16, which may cause compatibility issues with newer versions.

npm install galaxy-framework
INSTALL
IMPORT
SIG · GALAXY-FRAMEWORK
G
galaxy-framework
web-frameworkjavascriptv4.0.32
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Galaxy
✓ import { Galaxy } from 'galaxy-framework'
✗ const Galaxy = require('galaxy-framework');
ESM-only; CommonJS require will fail. Use import.
default
✓ import galaxy from 'galaxy-framework'
✗ const galaxy = require('galaxy-framework').default;
Default export available; CommonJS require leads to undefined.
types
✓ import type { GalaxyConfig } from 'galaxy-framework'
TypeScript types shipped; use type import for better bundling.

Initialize a Galaxy application with antd theme configuration.

import { Galaxy } from 'galaxy-framework'; const config = { antd: { theme: 'dark' } }; const app = new Galaxy(config); app.run();
Debug
Known issues
breakingIn version 4.x, the default export was removed. Use named exports.
fix
Replace `import galaxy from 'galaxy-framework'` with `import { Galaxy } from 'galaxy-framework'`.
affects: >=4.0.0
deprecatedThe `init()` method is deprecated. Use `run()` instead.
fix
Replace `app.init()` with `app.run()`.
affects: >=3.0.0
gotchaRequires antd ^3.26.16. Using antd v4+ will cause runtime errors.
fix
Install antd@3.26.16: `npm install antd@3.26.16`
affects: *
Errors
Common errors & fixes
TypeError: galaxy is not a function
Using default import after version 4.0.0 where default export was removed.
fix
Use named import: `import { Galaxy } from 'galaxy-framework'`
Module not found: Can't resolve 'antd'
Missing peer dependency antd.
fix
Run: `npm install antd@3.26.16`
Upgrade
Version history
4.0.32latest on npm
Audit
Dependencies
antdrequiredRequired peer dependency for UI components
Agent activity
2 hits · last 30 days
node
2
Resources
galaxy-framework — npm install galaxy-framework · libregistry