Registry / web-framework / weex-rax-framework

weex-rax-framework

JSON →
library0.6.5jsnpmunverified

Rax framework integration for Weex, enabling React-like development for cross-platform native mobile apps. Current stable version is v0.6.5, but the project is in maintenance mode with no active development since 2020. It provides a bridge between Rax (Alibaba's React-like library) and Weex's native rendering engine, allowing developers to write components using Rax APIs and run them on Weex. Key differentiators include custom builtin modules via factory pattern and integration with weex-jsfm for native rendering. The latest releases (v1.x) are for the parent Rax project; this package is still at v0.6.5.

npm install weex-rax-framework
INSTALL
IMPORT
SIG · WEEX-RAX-FRAMEWORK
W
weex-rax-framework
web-frameworkjavascriptv0.6.5
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

default
✓ import Rax from 'weex-rax-framework'
✗ const Rax = require('weex-rax-framework')
Only default export is supported; no named exports.
ModuleFactories
✓ import { ModuleFactories } from 'weex-rax-framework/builtin'
✗ import { ModuleFactories } from 'weex-rax-framework'
ModuleFactories is exported from the 'builtin' subpath, not the main entry.
rax
✓ import { createElement } from 'rax'
✗ import { createElement } from 'weex-rax-framework'
Rax functions are imported from the 'rax' package, not from 'weex-rax-framework'.

Shows how to configure webpack to build a weex-rax-framework bundle using RaxPlugin.

// Use webpack with RaxPlugin to build a framework bundle const webpack = require('webpack'); const RaxPlugin = require('rax-webpack-plugin'); module.exports = { target: 'node', entry: { 'rax.framework': './packages/weex-rax-framework/src/index.js', }, output: { path: './packages/weex-rax-framework/dist/', filename: '[name].js', }, plugins: [new RaxPlugin()], module: { loaders: [{ test: /\.jsx?$/, exclude: /(node_modules|bower_components)/, loader: 'babel', query: { presets: ['es2015'] } }] } };
Debug
Known issues
deprecatedweex-rax-framework is no longer actively maintained; use rax-weex instead.
fix
Migrate to rax-weex package for continued support.
affects: >=0.6.5
breakingv0.6.5 removes previously deprecated built-in module APIs without migration path.
fix
Update custom builtin modules to use the factory pattern as described in the README.
affects: >=0.6.5
gotchaImporting from 'weex-rax-framework' directly exports a single default export (the framework bundle), not individual Rax functions.
fix
Use 'import Rax from 'weex-rax-framework'' and access Rax APIs via the 'rax' package separately.
affects: >=0.6.0
Errors
Common errors & fixes
Cannot find module 'weex-rax-framework/builtin'
The subpath 'builtin' is not defined in package.json exports or is missing.
fix
Verify the file exists in node_modules or use the correct subpath: 'weex-rax-framework/dist/builtin.js'
Module not found: Error: Can't resolve 'rax'
Missing 'rax' npm package as a dependency.
fix
Run 'npm install rax' to add the required dependency.
Uncaught TypeError: Rax.createElement is not a function
Incorrect import: importing 'weex-rax-framework' instead of 'rax'.
fix
Use 'import { createElement } from 'rax'' instead of from 'weex-rax-framework'.
Upgrade
Version history
0.6.5latest on npm
Audit
Dependencies
raxrequiredCore dependency for Rax framework runtime.
weex-jsfmrequiredRequired for integration with Weex native renderer.
Agent activity
18 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
weex-rax-framework — npm install weex-rax-framework · libregistry