{"id":18930,"library":"weex-rax-framework","title":"weex-rax-framework","description":"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.","status":"maintenance","version":"0.6.5","language":"javascript","source_language":"en","source_url":"https://github.com/alibaba/rax","tags":["javascript"],"install":[{"cmd":"npm install weex-rax-framework","lang":"bash","label":"npm"},{"cmd":"yarn add weex-rax-framework","lang":"bash","label":"yarn"},{"cmd":"pnpm add weex-rax-framework","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for Rax framework runtime.","package":"rax","optional":false},{"reason":"Required for integration with Weex native renderer.","package":"weex-jsfm","optional":false}],"imports":[{"note":"Only default export is supported; no named exports.","wrong":"const Rax = require('weex-rax-framework')","symbol":"default","correct":"import Rax from 'weex-rax-framework'"},{"note":"ModuleFactories is exported from the 'builtin' subpath, not the main entry.","wrong":"import { ModuleFactories } from 'weex-rax-framework'","symbol":"ModuleFactories","correct":"import { ModuleFactories } from 'weex-rax-framework/builtin'"},{"note":"Rax functions are imported from the 'rax' package, not from 'weex-rax-framework'.","wrong":"import { createElement } from 'weex-rax-framework'","symbol":"rax","correct":"import { createElement } from 'rax'"}],"quickstart":{"code":"// Use webpack with RaxPlugin to build a framework bundle\nconst webpack = require('webpack');\nconst RaxPlugin = require('rax-webpack-plugin');\n\nmodule.exports = {\n  target: 'node',\n  entry: {\n    'rax.framework': './packages/weex-rax-framework/src/index.js',\n  },\n  output: {\n    path: './packages/weex-rax-framework/dist/',\n    filename: '[name].js',\n  },\n  plugins: [new RaxPlugin()],\n  module: {\n    loaders: [{\n      test: /\\.jsx?$/,\n      exclude: /(node_modules|bower_components)/,\n      loader: 'babel',\n      query: { presets: ['es2015'] }\n    }]\n  }\n};","lang":"javascript","description":"Shows how to configure webpack to build a weex-rax-framework bundle using RaxPlugin."},"warnings":[{"fix":"Migrate to rax-weex package for continued support.","message":"weex-rax-framework is no longer actively maintained; use rax-weex instead.","severity":"deprecated","affected_versions":">=0.6.5"},{"fix":"Update custom builtin modules to use the factory pattern as described in the README.","message":"v0.6.5 removes previously deprecated built-in module APIs without migration path.","severity":"breaking","affected_versions":">=0.6.5"},{"fix":"Use 'import Rax from 'weex-rax-framework'' and access Rax APIs via the 'rax' package separately.","message":"Importing from 'weex-rax-framework' directly exports a single default export (the framework bundle), not individual Rax functions.","severity":"gotcha","affected_versions":">=0.6.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Verify the file exists in node_modules or use the correct subpath: 'weex-rax-framework/dist/builtin.js'","cause":"The subpath 'builtin' is not defined in package.json exports or is missing.","error":"Cannot find module 'weex-rax-framework/builtin'"},{"fix":"Run 'npm install rax' to add the required dependency.","cause":"Missing 'rax' npm package as a dependency.","error":"Module not found: Error: Can't resolve 'rax'"},{"fix":"Use 'import { createElement } from 'rax'' instead of from 'weex-rax-framework'.","cause":"Incorrect import: importing 'weex-rax-framework' instead of 'rax'.","error":"Uncaught TypeError: Rax.createElement is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}