Giter Site home page Giter Site logo

alibaba / rax Goto Github PK

View Code? Open in Web Editor NEW
8.0K 206.0 628.0 20.44 MB

🐰 Rax is a progressive framework for building universal application. https://rax.js.org

License: Other

JavaScript 98.96% HTML 0.38% CSS 0.06% Vue 0.60%
rax mobile universal framework pwa ssr weex miniapp web javascript

rax's Introduction

Rax

Rax is a progressive framework for building universal applications.

gzip size


💌 Write Once, Run Anywhere: write one codebase, run with Web, Weex, Node.js, Alibaba MiniApp, and WeChat MiniProgram. Rax can be used with additional containers that implement it's driver specification.

Fast: better performance and a tiny size(📦~6KB) when compared to React using the same API.

📤 Easy: quick start with zero configuration, all features like Progressive Web App (PWA), Server-Side Rendering (SSR), and Function as a service (FaaS) can be used out of the box.

Quick Start 🥢🍚

Start from command line

Create a new Rax project using create-rax:

$ npm init rax <YourProjectName>

npm init <initializer> is available in npm 6+

Start local server to launch project:

$ cd <YourProjectName>
$ npm install
$ npm run start

Start from VS Code

You need to install the AppWorks Pack and invoke the Create Application command from the VS Code command palette (Ctrl + Shift + P or Cmd + Shift + P on Mac):

vscode

Developer Tools 🛠

You can inspect and modify the state of your Rax components at runtime using the Rax Developer Tools browser extension, however the extension will not work in production mode.

  1. Install the Chrome Rax Developer Tools extension
  2. Reload and go to the 'Rax' tab in the browser's development tools

VS Code Extension

You can use AppWorks Pack to get better development experience.

Awesome Things 📝

You can find some awesome things in awesome-rax.

Contributing 🧼

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing.

Code Contributors

This project exists thanks to all the people who contribute.

Community support

For general help using Rax, please refer to the official site. For additional help, you can use one of these channels to ask a question:

  • GitHub (Bug reports, contributions)
  • Twitter (Get the news fast)
  • Medium (Get blogs and articles)
  • 知乎专栏 (Get blogs and articles in Simplified Chinese)

rax's People

Contributors

94cstyles avatar alvinhui avatar andycall avatar answershuto avatar bakujun avatar balloonzzq avatar battle-ooze avatar boiawang avatar chenjun1011 avatar chriscindy avatar doranyun avatar fengwuxp avatar franklife avatar fyangstudio avatar gaohaoyang avatar hijiangtao avatar huxiaoqi567 avatar imsobear avatar kingback avatar noyobo avatar orange-c avatar playing avatar solojiang avatar tinple avatar wssgcg1213 avatar yacheng avatar yongningfu avatar yuanyan avatar yujiangshui avatar zhangmengxue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rax's Issues

stylesheet-loader support media rule

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:

stylesheet-loader could transform @media rule

@media screen and (min-width: 480px) {
    title {
        font-size: 25rem;
    }
}

Hot reload work in weex

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Feature request

stylesheet-loader support font-face at-rule

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:

stylesheet-loader could transform css font-face rule

@font-face {
  font-family: myFirstFont;
  src: url('Sansation_Light.ttf')
}

Compile to:

var myFirstFont = new FontFace('myFirstFont', "url('Sansation_Light.ttf')");
document.fonts.add(myFirstFont);

stylesheet loader add console highlight

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance

在Rax工程里用React方式实现了一个Slider组件,在浏览器正常运行,而Weex playground无法运行,不知道哪位大神可以看下原因?https://github.com/yolynn-bird/nextday-rax

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:
  • What is the current behavior?
  • What is the expected behavior?
  • Which versions of Rax, and which browser / OS are affected by this issue?
  • Did this work in previous versions of Rax?
  1. If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on CodePen
    .

textinput propsCommon.readOnly 的问题

问题描述:

  1. 设置 textinput editable 为false,则readOnly=true
  2. 通过props 修改textinput的 editable 为true,此时由于代码里没处理,不再有 readOnly 属性传给weex。
  3. 由于weex 默认值设置没有把readOnly 改为false,导致 textinput readOnly 永远为true,与期望不一致。

解决办法: 二选一。

  1. 给组件加上readOnly false 的默认值 2. weex 默认值加上readonly false默认值

h5 下动态插入div,渲染组件到该节点,只要带上 ref 就会报错

  1. How would you tag this issue?
  • Question
  1. Describe your issue:

js

//MyComponent

...
render(){
    return <View ref="test"></View>
}
...
//使用
    var container = document.createElement('div');
    container.setAttribute("id", 'container');
    document.body.appendChild(container);
    render(<MyComponent/>,findDOMNode(document.getElementById('container'))

ref="test" 加上就直接报错

attach: function attach(ownerComponent, ref, component) {
if (!ownerComponent) {
throw new Error('You might be adding a ref to a component that was not created inside a component's ' + 'render method, or you have multiple copies of Rax loaded.');
}

flex布局中flex属性无效

FlexTestPage.js文件如下:
import {createElement, Component, render} from 'rax';
import styles from './FlexTestPage.css';

class FlexTestPage extends Component {
render() {
return (
<div>
<div style={styles.div1}></div>
<div style={styles.div2}></div>
</div>
);

}

}
render(<FlexTestPage/>);

FlexTestPage.css文件如下:
.div1{
background-color: red;
flex: 1;

}
.div2{
background-color: yellow;
flex: 2;
}

期望值是屏幕上下应该按照1:2的比例划分,而实际没有任何效果。

DOMs' order get wrong after 'key' attribute is set.

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:
  • What is the current behavior?
    Giving each item in an array a 'key' attribute makes them become disordered after changing some items in the array. This bug happens with the latest @ali/rx version and I have not tested it on Rax yet.
    You can check out the react version on the jsfiddle: react . Click the CHANGE button on the bottom of the list to change items and trigger this bug.
    And also here's the code for rx:
/** @jsx createElement */
'use strict';

import {createElement, Component} from '@ali/rx';
import {View, Text} from '@ali/rx-components';
import {mount} from '@ali/rx-mounter';

function generateItems(count = 10) {
  let arr = [];
  for (;count--;) {
    arr.push({
      value: 'item-' + parseInt(Math.random() * 1e5, 10)
    });
  }
  return arr;
}
const item = {value: 'fixed item'};
class App extends Component {
  constructor(props) {
    super(props);

    let items = generateItems(10);
    items.splice(6, 0, item);

    this.state = {
      list: items
    };
  }
  change() {
    let items = generateItems(10);
    items.splice(6, 0, item);
    this.setState({list: items});
  }
  render() {
    let {list} = this.state;
    return <View>
      {list.map((val) => <Item key={val.value} {...val} />)}
      <Text onPress={::this.change}>CHANGE</Text>
    </View>;
  }
}

class Item extends Component {
  render() {
    let {value} = this.props;
    return <div><Text>{value}</Text></div>;
  }
}

mount(<App />, 'body');

TouchableBounce component is undefined

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:
  • What is the current behavior?
    The TouchableBounce in Game2048.js is undefined, it also cannot be found in rax-components
  • What is the expected behavior?
    A real component exist or remove it.
  • Which versions of Rax, and which browser / OS are affected by this issue?
    examples in branch master
  • Did this work in previous versions of Rax?
  1. If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on jsFiddle.
    Just play the game 2048

Rax语法支持JSX,但是所有的React API都被Rax替代,这样一些开源的React的库文件在Rax基本运行不起来,是否有这样的问题呢?比如我想引用一个React下比较成熟的框架到Rax中来,会报一些API错误

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:
  • What is the current behavior?
  • What is the expected behavior?
  • Which versions of Rax, and which browser / OS are affected by this issue?
  • Did this work in previous versions of Rax?
  1. If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on CodePen
    .

Routing?

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:
  • What is the current behavior?
    Rax is a view engine.
  • What is the expected behavior?
    Is this compatible with react router?
  • Which versions of Rax, and which browser / OS are affected by this issue?
  • Did this work in previous versions of Rax?
  1. If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on jsFiddle
    .

Button 'disabled' property doesn't works

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:
  • What is the current behavior?
    Button HTML does not respect "disabled" property.
  • What is the expected behavior?
    Button HTML component must be disabled when "disabled" property is false or enabled when it is true.
  • Which versions of Rax, and which browser / OS are affected by this issue?
    Rax 0.1.5, Chrome 55.0 on OSX
  • Did this work in previous versions of Rax?
    No, I've tried Rax 0.1.4.
  1. If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on jsFiddle

I can't put Rax to work on jsFiddle, so I copy my snippet code that does not works.

  render() {
        let hasRows = (this.state.contacts.length > 0)
        return (
            <div className="row">
                <p>&nbsp;</p>
                <button className="btn btn-warning" 
                              disabled={hasRows} onClick={this.onLoad}>Load</button>
                <button className="btn btn-primary" 
                              disabled={!hasRows} onClick={this.onClear}>Clear</button>                
                <div>
                    <Table data={this.state.contacts}></Table>
                </div>
            </div>
        )
    }

When I run this code always the two buttons are disabled. I've tried to put true and false directly on disabled property, but it does not works as well. The same snippet code work with React and Preact.

rax编译后的bundlejs在weex0.8 版本可以运行但是weex0.95不可以运行。

错误提示:
2017-02-13 00:32:29.876 WeexDemo[27482:1615296] �[fg100,149,237; [info]WXJSCoreBridge.m:89, jsLog: START JS FRAMEWORK 0.19.7, Build 2017-01-10 10:50. �[;
2017-02-13 00:32:30.046 WeexDemo[27482:1615296] �[fg100,149,237; [info]WXBridgeContext.m:326, No send queue for instance:<WXSDKInstance: 0x7f8471d10080; id = 0; rootView = (null); url= http://127.0.0.1:8080/dist/FlexTestPage.js?random=-1439887834>, may it has been destroyed so method:fireEvent is ignored �[;
2017-02-13 00:32:30.074 WeexDemo[27482:1615199] �[fg128,128,128; [log]WXSDKInstance.m:151, Start rendering page:http://127.0.0.1:8080/dist/FlexTestPage.js �[;
2017-02-13 00:32:30.085 WeexDemo[27482:1615296] �[fg255,0,0; [error]WXMonitor.m:196, [main.js:3518:2656] SyntaxError: Unexpected token '}'. Expected ')' to end a compound expression.
Function@[native code]
main.js:5:2656
[email protected]:5:2786
main.js:7:1121 �[;

how to use hover with universal-stylesheet package.

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:

Is there any way to do this, none of the examples has this.

captura de pantalla 2017-01-13 a las 22 16 36

  1. If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on jsFiddle
    .

Browser compatibility?

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question

setState callback cant excute in componentWillReceiveProps

 componentWillReceiveProps(props){
    if(props.currentDate != this.state.currentDate){
      this.setState({
        currentDate:props.currentDate,
        hasMore:false
      },()=>{
        console.log('new props was synced');
        debugger
      });
      console.log('this.state.currentDate',this.state.currentDate);
    }
  }

setState callback cant excute in componentWillReceiveProps,in other method or react it works

[BUG] web-rax-framework v0.1.0 on unpkg broken

Trying to following the step in the readme file,

  1. rax init myDemo after fresh install
  2. run cd myDemo && npm run start
  3. open localhost:8080 but get this error from debug tool

This is broken with the latest version of web-rax-framework which is loaded from https://unpkg.com/[email protected]/dist/framework.web.js

screen shot 2017-01-13 at 10 22 26 pm

However an older version(0.0.10) https://unpkg.com/[email protected]/dist/framework.web.js (which is the one used on rax playground) seems work without any issue.

This is because the bundled source code is using define which is not available yet.

// {"framework" : "Rax"}
define("framework.web", function(require) {/******/ (function(modules) { // webpackBootstrap

(question) Inferno/Preact comparison

If the purpose of this library is fast server-side rendering of React components, why another custom solution over others? Do you have any server rendering benchmarks against Inferno or Preact?

stylesheet-loader new features

  1. Grouping Selectors
.a, .b{
  background: #555;
  font-size: 14px;
  font-style: italic;
  text-decoration: none;
}

.a {
 color: #fff;
}

.b {
 color: #ddd;
}
  1. Import file
@import './foo.css'; 

How does Rax compare to Preact?

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  1. Describe your issue:
    I'd be interested in a comparison with Preact

[email protected]/dist/framework.web.js对__weex_define__不支持

对于Weex0.8在js中引用weex module只能通过如下的方式:
let stream;
weex_define('@weex-temp/api', function(weex_require) {
stream = weex_require('@weex-module/stream')
});
vue-weex的项目这种方式在移动端和h5端都可以运行,但是在rax中,iOS可以正常运行,但是h5却报Uncaught ReferenceError: weex_define is not defined 错误,应该是//unpkg.com/[email protected]/dist/framework.web.js这个框架没有支持。
.

Contributing: master vs not master branch

There appears to be conflicting/confusing guidelines on how to go about submitting a pull request

According to your Pull Request Guidelines in CONTRIBUTING.md:

Do not submit PRs against the master branch.

But then in your PULL_REQUEST_TEMPLATE.md:

Fork the repo and create your branch from master.

The above two statements appear to contradict each other.


The Pull Request Guidelines also say:

The master branch is basically just a snapshot of the latest stable release

This suggests to me that master only updates when there's a release and development occurs on some other branch. But which branch?

Checkout a topic branch from the relevant branch, e.g. dev, and merge back against that branch.

I looked for a dev branch but none existed. Based on the listed branches it is not immediately clear on which branch core development is occurring, as they are all behind master:

image

I believe that one, or both, of these contributing documents contains out-of-date, or inaccurate information.


In addition:

The master branch is basically just a snapshot of the latest stable release

This github workflow is atypical. In my experience, the most common workflow on github is to develop on the master branch, and use one (or more) of the following tools for releases:

I suggest picking one or more of these and using that instead.

If you do choose to develop on a branch other than master, then it would be good to configure the default branch for the github repo to be the development branch for the next release. This will help funnel contributors to the right location.

rax-cli 问题记录

新版文档准备就绪,上线前从用户角度检查一遍文档,check 按照文档走能不能跑起来

  • 问题描述:rax init demo, 但是 demo 文件夹已存在,提示是否 continue,操作 ctrl + c 后爆出错误栈,应该直接 exit(1) 就行了
    image

  • rax init 自动安装 npm 速度慢,切换至 cnpm 源?大概要了4分多钟(npm2)

  • rax init 时候 package.json 没有被改写,建议用 inquirer.js 询问用户项目信息后写入。
    image

  • npm run start 之后无法扫描二维码,可能与终端字符有关
    image

  • cli 界面格式输出相对混乱,可以参考 def/gulp

  • 默认 8080 端口容易被占用,1024以下端口需要管理员权限,很多本机调试的老司机都在8080起apache/nginx

  • 默认可以给配一个 favicon
    image

  • https://unpkg.com/[email protected]/dist/framework.web.js 加载特别慢,因为chrome devtool 模式开着 disable cache,每次都是完整读取,考虑 alicdn ?

  • 每次热编译完成没有终端提示,weex 中只能不断刷新确认是否生效;另外建议也显示HTTP请求情况

  • 文档中缺失运行 weex playground 的手机需要与开发机(电脑)在同一局域网(wifi)环境下的提示

weex-rax-example编译成功后在运行时报错。

chrome上的报错信息是:
Uncaught TypeError: Super expression must either be null or a function, not undefined
at _inherits (eval at init (init.js:60), :121:114)
at eval (eval at init (init.js:60), :153:4)
at Object.eval (eval at init (init.js:60), :197:3)
at webpack_require (eval at init (init.js:60), :46:30)
at Object.eval (eval at init (init.js:60), :77:14)
at webpack_require (eval at init (init.js:60), :46:30)
at eval (eval at init (init.js:60), :66:18)
at eval (eval at init (init.js:60), :69:10)
at eval (eval at init (init.js:60), :10:24)
at AppInstance.define (define.js:80)

iOS上的报错信息是:
2017-02-05 16:34:51.499 WeexDemo[4253:658999] �[fg100,149,237; [info]WXJSCoreBridge.m:89, jsLog: START JS FRAMEWORK 0.19.7, Build 2017-01-10 10:50. �[;
2017-02-05 16:34:51.729 WeexDemo[4253:658999] �[fg100,149,237; [info]WXBridgeContext.m:326, No send queue for instance:<WXSDKInstance: 0x7fd2bc3044e0; id = 0; rootView = (null); url= http://127.0.0.1:8089/dist/index.js?random=-1490610232>, may it has been destroyed so method:fireEvent is ignored �[;
2017-02-05 16:34:51.746 WeexDemo[4253:658483] �[fg128,128,128; [log]WXSDKInstance.m:151, Start rendering page:http://127.0.0.1:8089/dist/index.js �[;
2017-02-05 16:35:00.848 WeexDemo[4253:658483] �[fg128,128,128; [log]WXSDKInstance.m:151, Start rendering page:http://127.0.0.1:8089/dist/index.js �[;

What does stylesheet need to do

  • keep styles separated from the component code
  • excellent validation warning
  • variable manage system
  • theme
  • pseudo classes
  • media queries

what is necessary for the above points?

eslint code check does not passed

1,error info:
/Volumes/Transcend/opensource/react/framework/rx/packages/universal-rx/src/server/serializer.js
86:26 error 'style' is not defined no-undef @#

2,I think this line is save the node.style to the json object,so I changed to the floowing code and eslint code check does passed;
json.style = node.style;

element-loader example

/* foo.css */
.h3 {
   color: red;  
}
<!-- Hello.html -->
<template>
      <style>
         .text {
           color: {{color}};
         }
     </style>
     <span class='text'>{{message}}</span>
</template>
<!-- Title.html -->
<h3>Title</h3>
<link rel="stylesheet" href="./foo.css">
<link rel="import" href="./Hello.html">
<link rel="import" href="./Title.html">

 <style>
  .container {
    color: blue;
  }
</style>

<div class="container">
   <Title />
  <Hello message="world" color="red" />
</div>

rax compare with react unfair

you guys claims react using Create.class ,this is before state of react ,now react full support es6 code you guys not mentioned us lol and you gusy fully following footstep of react

Use Existing React Code and have an isomorphic app?

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  1. Describe your issue:
  • Is it in anyway possible to use the existing react code written for client as is with isomorphic apps?

weex0.80不支持fetch方法,rax对于h5端又不支持var stream = require('@weex-module/stream')方式,有没有什么一致的解决方法。

在rax中用
var stream = require('@weex-module/stream');
stream.fetch({
method: 'GET',
type: 'json',
url: url
}, function (res) {
}, null);
对于h5会报Uncaught TypeError: stream.fetch is not a function 错误,
但是如直接用全局函数fetch api,iOS端又会报
2017-02-13 12:33:52.248 RedStarMain[1460:143957] �[fg255,0,0; [error]WXMonitor.m:190, [undefined:243:11] ReferenceError: Can't find variable: fetch
doGET
componentDidMount 错误,
有没有什么一致的解决方法,在vue-weex中第一种方法在h5和iOS端是通用的,但是rax却不行。

怎么开发原生模块

Rax怎么开发原生模块,按照weex开发的模块在Rax中怎么使用,因为Rax中无法获取到模块

setNativeProps can't update event binding

  1. How would you tag this issue?
  • Bug
  1. Describe your issue:
  • What is the current behavior?
    • use setNativeProps set event binding multi times, event handler not update correctly
      • web: emit all event binding
      • weex: emit first event binding
  • What is the expected behavior?
    • update event binding as other props
  • Which versions of Rax, and which browser / OS are affected by this issue?
    • Rax 0.1.7
    • All platform
  • Did this work in previous versions of Rax?
    No
  1. Demo

How to use className instead of style?

按照文档中使用className来指定样式,在Web中能够正常显示,在Weex中界面白屏,使用了transform-jsx-stylesheet插件也一样

Project on web init failed with define is not defined error

Help us to manage our issues by answering the following:

  1. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
  1. Describe your issue:
  • What is the current behavior?
    After rax init hello and npm run start, open browser with the address which terminal shows, just like http://10.254.1.155:8080, browser shows blank page, and the console shows two error about the define function.

image

  • What is the expected behavior?
    There should be some text on the page.
  • Which versions of Rax, and which browser / OS are affected by this issue?
rax-cli: 0.1.2
rax: 0.1.2
node: 4.7.2
npm: 3.7.3
OS: macOSS Sierra 10.12.2
browser: chrome 55.0
  • Did this work in previous versions of Rax?
  1. If your issue is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via Bug Report Template on jsFiddle
    .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.